mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2024-12-28 23:08:09 +00:00
15 lines
484 B
PHP
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__));
|