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

craue / CraueFormFlowBundle / 7482275683

11 Jan 2024 12:03AM UTC coverage: 99.482% (-0.001%) from 99.483%
7482275683

push

github

web-flow
Merge pull request #419 from franmomu/dbal

remove DBAL deprecations

2 of 2 new or added lines in 1 file covered. (100.0%)

2 existing lines in 2 files now uncovered.

768 of 772 relevant lines covered (99.48%)

767.05 hits per line

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

100.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
UNCOV
25
                $container->findDefinition('craue.form.flow.storage_default')->replaceArgument(0, new Reference('session'));
16✔
26
        }
8✔
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