0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-12-28 23:08:09 +00:00
salesagility_SuiteCRM/Api/V8/Config/services/helpers.php
2020-01-28 17:06:26 +00:00

31 lines
1.0 KiB
PHP

<?php
use Api\V8\BeanDecorator\BeanManager;
use Api\V8\Helper;
use Api\V8\JsonApi\Helper as ApiHelper;
use Psr\Container\ContainerInterface as Container;
use Api\Core\Loader\CustomLoader;
return CustomLoader::mergeCustomArray([
Helper\VarDefHelper::class => function () {
return new Helper\VarDefHelper();
},
ApiHelper\AttributeObjectHelper::class => function (Container $container) {
return new ApiHelper\AttributeObjectHelper(
$container->get(BeanManager::class)
);
},
ApiHelper\RelationshipObjectHelper::class => function (Container $container) {
return new ApiHelper\RelationshipObjectHelper(
$container->get(Helper\VarDefHelper::class)
);
},
ApiHelper\PaginationObjectHelper::class => function (Container $container) {
return new ApiHelper\PaginationObjectHelper();
},
Helper\ModuleListProvider::class => function (Container $container) {
return new Helper\ModuleListProvider();
},
], basename(__FILE__));