SuiteCRM-Core/Api/V8/Config/services/helpers.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

30 lines
1 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__));