• 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

66.67
/CraueFormFlowBundle.php
1
<?php
2

3
namespace Craue\FormFlowBundle;
4

5
use Craue\FormFlowBundle\DependencyInjection\Compiler\LegacySessionCompilerPass;
6
use Craue\FormFlowBundle\Util\TempFileUtil;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\HttpFoundation\RequestStack;
9
use Symfony\Component\HttpKernel\Bundle\Bundle;
10

11
/**
12
 * @author Christian Raue <christian.raue@gmail.com>
13
 * @copyright 2011-2024 Christian Raue
14
 * @license http://opensource.org/licenses/mit-license.php MIT License
15
 */
16
class CraueFormFlowBundle extends Bundle {
17

18
        /**
19
         * @return void
20
         */
21
        public function boot() {
22
                /*
23
                 * Removes all temporary files created while handling file uploads.
24
                 * Use a shutdown function to clean up even in case of a fatal error.
25
                 */
26
                register_shutdown_function(function() : void {
1,638✔
27
                        TempFileUtil::removeTempFiles();
×
28
                });
1,638✔
29
        }
30

31
        /**
32
         * {@inheritDoc}
33
         */
34
        public function build(ContainerBuilder $container) : void {
35
                parent::build($container);
72✔
36

37
                if (!\method_exists(RequestStack::class, 'getSession')) {
72✔
38
                        $container->addCompilerPass(new LegacySessionCompilerPass());
×
39
                }
40
        }
41

42
}
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

© 2025 Coveralls, Inc