<?php /* * This file is part of the FOSRestBundle package. * * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FOS\RestBundle; use FOS\RestBundle\DependencyInjection\Compiler\ConfigurationCheckPass; use FOS\RestBundle\DependencyInjection\Compiler\HandlerRegistryDecorationPass; use FOS\RestBundle\DependencyInjection\Compiler\JMSFormErrorHandlerPass; use FOS\RestBundle\DependencyInjection\Compiler\JMSHandlersPass; use FOS\RestBundle\DependencyInjection\Compiler\FormatListenerRulesPass; use FOS\RestBundle\DependencyInjection\Compiler\SerializerConfigurationPass; use FOS\RestBundle\DependencyInjection\Compiler\TwigExceptionPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Compiler\PassConfig; use Symfony\Component\HttpKernel\Bundle\Bundle; /** * @author Lukas Kahwe Smith <smith@pooteeweet.org> * @author Eriksen Costa <eriksencosta@gmail.com> */ class FOSRestBundle extends Bundle { const ZONE_ATTRIBUTE = '_fos_rest_zone'; /** * {@inheritdoc} */ public function build(ContainerBuilder $container) { $container->addCompilerPass(new SerializerConfigurationPass()); $container->addCompilerPass(new ConfigurationCheckPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -10); $container->addCompilerPass(new FormatListenerRulesPass()); // must run after \Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\ExtensionPass which removes the templating.engine.twig service when templating is not enabled $container->addCompilerPass(new TwigExceptionPass(), PassConfig::TYPE_BEFORE_REMOVING, -10); $container->addCompilerPass(new JMSFormErrorHandlerPass()); $container->addCompilerPass(new JMSHandlersPass(), PassConfig::TYPE_BEFORE_REMOVING, -10); $container->addCompilerPass(new HandlerRegistryDecorationPass(), PassConfig::TYPE_AFTER_REMOVING); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.github | Folder | 0755 |
|
|
Context | Folder | 0755 |
|
|
Controller | Folder | 0755 |
|
|
Decoder | Folder | 0755 |
|
|
DependencyInjection | Folder | 0755 |
|
|
ErrorRenderer | Folder | 0755 |
|
|
EventListener | Folder | 0755 |
|
|
Exception | Folder | 0755 |
|
|
Form | Folder | 0755 |
|
|
Inflector | Folder | 0755 |
|
|
Negotiation | Folder | 0755 |
|
|
Normalizer | Folder | 0755 |
|
|
Request | Folder | 0755 |
|
|
Resources | Folder | 0755 |
|
|
Response | Folder | 0755 |
|
|
Routing | Folder | 0755 |
|
|
Serializer | Folder | 0755 |
|
|
Tests | Folder | 0755 |
|
|
Util | Folder | 0755 |
|
|
Validator | Folder | 0755 |
|
|
Version | Folder | 0755 |
|
|
View | Folder | 0755 |
|
|
.gitignore | File | 70 B | 0644 |
|
.php_cs | File | 589 B | 0644 |
|
.styleci.yml | File | 61 B | 0644 |
|
.travis.yml | File | 1.07 KB | 0644 |
|
CHANGELOG.md | File | 16.53 KB | 0644 |
|
FOSRestBundle.php | File | 2.02 KB | 0644 |
|
LICENSE | File | 1.08 KB | 0644 |
|
README.md | File | 2.11 KB | 0644 |
|
UPGRADING-2.0.md | File | 5.82 KB | 0644 |
|
UPGRADING-2.1.md | File | 413 B | 0644 |
|
UPGRADING-2.8.md | File | 6.04 KB | 0644 |
|
UPGRADING-3.0.md | File | 7.02 KB | 0644 |
|
composer.json | File | 3.3 KB | 0644 |
|
phpunit | File | 399 B | 0644 |
|
phpunit.xml.dist | File | 716 B | 0644 |
|