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