mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2024-11-24 08:36:48 +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__));
|