• 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

87.5
/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-2023 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,632✔
27
                        TempFileUtil::removeTempFiles();
×
28
                });
1,632✔
29
        }
179✔
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✔
UNCOV
38
                        $container->addCompilerPass(new LegacySessionCompilerPass());
16✔
39
                }
40
        }
8✔
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