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