0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-24 08:36:48 +00:00
salesagility_SuiteCRM/Api/V8/Config/services/factories.php
2020-01-28 17:06:26 +00:00

15 lines
484 B
PHP

<?php
use Api\V8\Factory;
use Psr\Container\ContainerInterface as Container;
use Api\Core\Loader\CustomLoader;
return CustomLoader::mergeCustomArray([
Factory\ParamsMiddlewareFactory::class => function (Container $container) {
return new Factory\ParamsMiddlewareFactory($container);
},
Factory\ValidatorFactory::class => function (Container $container) {
return new Factory\ValidatorFactory($container->get('Validation'));
},
], basename(__FILE__));