Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
56 / 56
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2// apie config file.
3
4use Apie\ApieCommonPlugin\ApieCommonPlugin;
5use Apie\Cms\RouteDefinitions\CmsRouteDefinitionProvider;
6use Apie\CmsApiDropdownOption\RouteDefinitions\DropdownOptionsForExistingObjectRouteDefinition;
7use Apie\Common\Wrappers\RequestAwareInMemoryDatalayer;
8use Apie\Console\ConsoleCommandFactory;
9use Apie\DoctrineEntityConverter\OrmBuilder;
10use Apie\DoctrineEntityDatalayer\DoctrineEntityDatalayer;
11use Apie\Faker\ApieObjectFaker;
12use Apie\Maker\Utils;
13use Apie\RestApi\OpenApi\OpenApiGenerator;
14use Apie\TwigTemplateLayoutRenderer\TwigRenderer;
15use Symfony\Component\Lock\Store\FlockStore;
16
17return [
18    'cms' => [
19        'base_url' => '/cms',
20        'dashboard_template' => 'apie::dashboard',
21        'error_template' => 'apie::error',
22        'asset_folders' => [
23            // storage_path('overrides')
24        ],
25        'laravel_middleware' => [],
26    ],
27    'lock_store' => FlockStore::class,
28    'rest_api' => [
29        'base_url' => '/api',
30        'laravel_middleware' => [],
31    ],
32    'datalayers' => [
33        'default_datalayer' => RequestAwareInMemoryDatalayer::class,
34        'context_mapping' => [
35            // 'bounded context id' => [
36            //  'default_datalayer' => DataLayer::class,
37            //  'entity_mapping' => [
38            //    ClassName::class => DataLayer::class,
39            //  ]
40            //]
41        ]
42    ],
43    'doctrine' => [
44        'build_once' => false,
45        'run_migrations' => false,
46        'connection_params' => [],
47    ],
48    'storage' => null,
49    'maker' => [
50        'target_path' => false,
51        'target_namespace' => 'App\Apie',
52    ],
53    'bounded_contexts' => [
54        'default' => [
55            'entities_folder' => app_path('Apie/Entities'),
56            'entities_namespace' => 'App\\Apie\\Entities\\',
57            'actions_folder' => app_path('Apie/Actions'),
58            'actions_namespace' => 'App\\Apie\\Actions\\',
59        ]
60    ],
61    'enable_core' => true,
62    'enable_common_plugin' => class_exists(ApieCommonPlugin::class),
63    'enable_cms' => class_exists(CmsRouteDefinitionProvider::class),
64    'enable_cms_dropdown' => class_exists(DropdownOptionsForExistingObjectRouteDefinition::class),
65    'enable_doctrine_entity_converter' => class_exists(OrmBuilder::class),
66    'enable_doctrine_entity_datalayer' => class_exists(DoctrineEntityDatalayer::class),
67    /* 'enable_doctrine_bundle_connection'  symfony only*/
68    'enable_faker' => class_exists(ApieObjectFaker::class),
69    'enable_maker' => class_exists(Utils::class),
70    'enable_rest_api' => class_exists(OpenApiGenerator::class),
71    'enable_console' => class_exists(ConsoleCommandFactory::class),
72    'enable_twig_template_layout_renderer' => class_exists(TwigRenderer::class),
73];