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

craue / CraueFormFlowBundle / 15439473581

04 Jun 2025 10:02AM UTC coverage: 98.725% (-0.8%) from 99.482%
15439473581

push

github

craue
dropped support for Symfony 4.4, 6.3, 7.0, 7.1

697 of 706 relevant lines covered (98.73%)

838.74 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-2024 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