b2pweb / bdf-serializer-bundle
Symfony SerializerBundle
v1.1.1
2024-09-27 09:46 UTC
Requires
- php: ~7.2 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0
- b2pweb/bdf-serializer: ~1.0
- symfony/config: ^5.1|^6.0|~7.0
- symfony/dependency-injection: ^5.1|^6.0|~7.0
- symfony/framework-bundle: ^5.1|^6.0|~7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ~3.0
- phpunit/phpunit: ~7.0|~8.0|~9.0
- symfony/console: ^5.1|^6.0|~7.0
- symfony/phpunit-bridge: ^5.1|^6.0|~7.0
- symfony/yaml: ^5.1|^6.0|~7.0
README
安装
1 下载Bundle
使用composer下载此bundle的最新稳定版本
$ composer require b2pweb/bdf-serializer-bundle
2 启用Bundle
在您的项目中的config/bundles.php
文件中添加以下行:
<?php // config/bundles.php return [ // ... Bdf\SerializerBundle\BdfSerializerBundle::class => ['all' => true], // ... ];
3 添加配置
在./config/packages/bdf_serializer.yaml
中添加默认配置文件。
启用生产环境中的缓存
bdf_serializer: cache: pool: 'cache.app'
在./config/packages/test/bdf_serializer.yaml
中添加测试文件
bdf_serializer: cache: pool: null