Installation
composer require sylius/resource-bundlecurl -sS https://getcomposer.org/installer | php
php composer.phar require sylius/resource-bundleAdding Required Bundles to The Kernel
return [
new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),
new BabDev\PagerfantaBundle\BabDevPagerfantaBundle(),
];<?php
declare(strict_types=1);
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->extension(
namespace: 'sylius_resource',
config: [
'mapping' => [
'paths' => [
'%kernel.project_dir%/src/Entity',
],
],
'resources' => null,
]);
};sylius_resource:
mapping:
paths:
- '%kernel.project_dir%/src/Entity'Last updated
Was this helpful?