• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

craue / CraueFormFlowBundle / 6028840552

30 Aug 2023 06:45PM UTC coverage: 0.716% (-98.8%) from 99.472%
6028840552

push

github

craue
allow deprecation notices for now

699 of 97589 relevant lines covered (0.72%)

4.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/DependencyInjection/Compiler/LegacySessionCompilerPass.php
1
<?php
2

3
namespace Craue\FormFlowBundle\DependencyInjection\Compiler;
4

5
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Reference;
8

9
/**
10
 * For services requiring session access, inject the Session service directly in case the RequestStack service does not provide the session.
11
 * This is needed for Symfony < 5.3 compatibility.
12
 * See https://github.com/symfony/symfony/pull/38616
13
 *
14
 * @author Christian Raue <christian.raue@gmail.com>
15
 * @copyright 2011-2023 Christian Raue
16
 * @license http://opensource.org/licenses/mit-license.php MIT License
17
 */
18
class LegacySessionCompilerPass implements CompilerPassInterface {
19

20
        /**
21
         * @return void
22
         */
23
        public function process(ContainerBuilder $container) : void {
24
                // TODO remove as soon as Symfony >= 5.3 is required
25
                $container->findDefinition('craue.form.flow.storage_default')->replaceArgument(0, new Reference('session'));
×
26
        }
27

28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc