Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
55 / 55
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;
15
16return [
17    'cms' => [
18        'base_url' => '/cms',
19        'dashboard_template' => 'apie::dashboard',
20        'error_template' => 'apie::error',
21        'asset_folders' => [
22            // storage_path('overrides')
23        ],
24        'laravel_middleware' => [],
25    ],
26    'rest_api' => [
27        'base_url' => '/api',
28        'laravel_middleware' => [],
29    ],
30    'datalayers' => [
31        'default_datalayer' => RequestAwareInMemoryDatalayer::class,
32        'context_mapping' => [
33            // 'bounded context id' => [
34            //  'default_datalayer' => DataLayer::class,
35            //  'entity_mapping' => [
36            //    ClassName::class => DataLayer::class,
37            //  ]
38            //]
39        ]
40    ],
41    'doctrine' => [
42        'build_once' => false,
43        'run_migrations' => false,
44        'connection_params' => [],
45    ],
46    'storage' => null,
47    'maker' => [
48        'target_path' => false,
49        'target_namespace' => 'App\Apie',
50    ],
51    'bounded_contexts' => [
52        'default' => [
53            'entities_folder' => app_path('Apie/Entities'),
54            'entities_namespace' => 'App\\Apie\\Entities\\',
55            'actions_folder' => app_path('Apie/Actions'),
56            'actions_namespace' => 'App\\Apie\\Actions\\',
57        ]
58    ],
59    'enable_core' => true,
60    'enable_common_plugin' => class_exists(ApieCommonPlugin::class),
61    'enable_cms' => class_exists(CmsRouteDefinitionProvider::class),
62    'enable_cms_dropdown' => class_exists(DropdownOptionsForExistingObjectRouteDefinition::class),
63    'enable_doctrine_entity_converter' => class_exists(OrmBuilder::class),
64    'enable_doctrine_entity_datalayer' => class_exists(DoctrineEntityDatalayer::class),
65    /* 'enable_doctrine_bundle_connection'  symfony only*/
66    'enable_faker' => class_exists(ApieObjectFaker::class),
67    'enable_maker' => class_exists(Utils::class),
68    'enable_rest_api' => class_exists(OpenApiGenerator::class),
69    'enable_console' => class_exists(ConsoleCommandFactory::class),
70    'enable_twig_template_layout_renderer' => class_exists(TwigRenderer::class),
71];