SuiteCRM-Core/Api/V8/Config/services/factories.php
Dillon-Brown 8e4cc94994 Squashed 'public/legacy/' content from commit 817a12dc0
git-subtree-dir: public/legacy
git-subtree-split: 817a12dc0c30c189f56d5cb1f7dc37a9631bdbe3
2021-03-31 15:37:32 +01:00

14 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__));