This repository was archived by the owner on Nov 27, 2020. It is now read-only.
File tree 5 files changed +21
-10
lines changed
5 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 3
3
use Doctrine \Common \Annotations \AnnotationRegistry ;
4
4
use Composer \Autoload \ClassLoader ;
5
5
6
+ error_reporting (error_reporting () & ~E_USER_DEPRECATED );
7
+
6
8
/**
7
9
* @var ClassLoader $loader
8
10
*/
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env php
2
2
<?php
3
3
4
+ use Symfony \Bundle \FrameworkBundle \Console \Application ;
5
+ use Symfony \Component \Console \Input \ArgvInput ;
6
+ use Symfony \Component \Debug \Debug ;
7
+
4
8
// if you don't want to setup permissions the proper way, just uncomment the following PHP line
5
9
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
6
10
//umask(0000);
7
11
8
12
set_time_limit (0 );
9
13
10
- require_once __DIR__ .'/bootstrap.php.cache ' ;
14
+ /**
15
+ * @var Composer\Autoload\ClassLoader $loader
16
+ */
17
+ $ loader = require __DIR__ .'/../app/autoload.php ' ;
11
18
require_once __DIR__ .'/AppKernel.php ' ;
12
19
13
- use Symfony \Bundle \FrameworkBundle \Console \Application ;
14
- use Symfony \Component \Console \Input \ArgvInput ;
15
- use Symfony \Component \Debug \Debug ;
16
-
17
20
$ input = new ArgvInput ();
18
21
$ env = $ input ->getParameterOption (array ('--env ' , '-e ' ), getenv ('SYMFONY_ENV ' ) ?: 'dev ' );
19
22
$ debug = getenv ('SYMFONY_DEBUG ' ) !== '0 ' && !$ input ->hasParameterOption (array ('--no-debug ' , '' )) && $ env !== 'prod ' ;
Original file line number Diff line number Diff line change 5
5
xsi : noNamespaceSchemaLocation =" http://schema.phpunit.de/4.1/phpunit.xsd"
6
6
backupGlobals =" false"
7
7
colors =" true"
8
- bootstrap =" bootstrap .php.cache "
8
+ bootstrap =" autoload .php"
9
9
>
10
10
<testsuites >
11
11
<testsuite name =" Project Test Suite" >
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- use Symfony \Component \ClassLoader \ApcClassLoader ;
4
3
use Symfony \Component \HttpFoundation \Request ;
5
4
6
- $ loader = require_once __DIR__ .'/../app/bootstrap.php.cache ' ;
5
+ /**
6
+ * @var Composer\Autoload\ClassLoader $loader
7
+ */
8
+ $ loader = require __DIR__ .'/../app/autoload.php ' ;
9
+ include_once __DIR__ .'/bootstrap.php.cache ' ;
7
10
8
11
// Enable APC for autoloading to improve performance.
9
12
// You should change the ApcClassLoader first argument to a unique prefix
10
13
// in order to prevent cache key conflicts with other applications
11
14
// also using APC.
12
15
/*
13
- $apcLoader = new ApcClassLoader(sha1(__FILE__), $loader);
16
+ $apcLoader = new Symfony\Component\ClassLoader\ ApcClassLoader(sha1(__FILE__), $loader);
14
17
$loader->unregister();
15
18
$apcLoader->register(true);
16
19
*/
Original file line number Diff line number Diff line change 18
18
exit ('You are not allowed to access this file. Check ' .basename (__FILE__ ).' for more information. ' );
19
19
}
20
20
21
- $ loader = require_once __DIR__ .'/../app/bootstrap.php.cache ' ;
21
+ /**
22
+ * @var Composer\Autoload\ClassLoader $loader
23
+ */
24
+ $ loader = require __DIR__ .'/../app/autoload.php ' ;
22
25
Debug::enable ();
23
26
24
27
require_once __DIR__ .'/../app/AppKernel.php ' ;
You can’t perform that action at this time.
0 commit comments