• 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

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-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,274✔
27
                        TempFileUtil::removeTempFiles();
×
28
                });
1,274✔
29
        }
30

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

37
                if (!\method_exists(RequestStack::class, 'getSession')) {
56✔
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