File: autoload.build.php

package info (click to toggle)
symfony 2.8.7%2Bdfsg-1.3%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 39,888 kB
  • sloc: php: 225,095; xml: 4,083; sh: 475; ansic: 263; makefile: 127
file content (24 lines) | stat: -rw-r--r-- 1,032 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
// Make sure we use the autoload.php files generated by phpab
// What needs to be autoloaded for test can be found in  the main
// composer.json under 'autoload:'
require_once "Symfony/Bridge/Doctrine/autoload.php";
require_once "Symfony/Bridge/Monolog/autoload.php";
require_once "Symfony/Bridge/ProxyManager/autoload.php";
require_once "Symfony/Bridge/Twig/autoload.php";
foreach (glob("Symfony/{Bundle,Component}/*/autoload.php", GLOB_BRACE) as $autoload_file) {
    require_once "$autoload_file";
}
// ----
// Make sure the Symfony Class Loader is in place, since some tests need it
require_once 'Symfony/Component/ClassLoader/ClassLoader.php';
use Symfony\Component\ClassLoader\ClassLoader;
$loader = new ClassLoader();
$loader->setUseIncludePath(true);
$loader->addPrefix('Symfony', './');
$loader->register();
// ----
// Make sure Doctrine's AnnotationRegistry is in place, since tests need it
use Doctrine\Common\Annotations\AnnotationRegistry;
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
// ----