Vendor update && Started using DoctrineMigrations
This commit is contained in:
36
vendor/jms/metadata/schmittjoh-metadata-84088bc/tests/bootstrap.php
vendored
Normal file
36
vendor/jms/metadata/schmittjoh-metadata-84088bc/tests/bootstrap.php
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Metadata library.
|
||||
*
|
||||
* (C) 2011 Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||
*
|
||||
*/
|
||||
|
||||
spl_autoload_register(function($class)
|
||||
{
|
||||
if (0 === strpos($class, 'Metadata\Tests\\')) {
|
||||
$path = __DIR__.'/../tests/'.strtr($class, '\\', '/').'.php';
|
||||
if (file_exists($path) && is_readable($path)) {
|
||||
require_once $path;
|
||||
|
||||
return true;
|
||||
}
|
||||
} else if (0 === strpos($class, 'Metadata\\')) {
|
||||
$path = __DIR__.'/../src/'.($class = strtr($class, '\\', '/')).'.php';
|
||||
if (file_exists($path) && is_readable($path)) {
|
||||
require_once $path;
|
||||
|
||||
return true;
|
||||
}
|
||||
} else if (0 === strpos($class, 'Symfony\\')) {
|
||||
$path = __DIR__.'/../../symfony/src/'.strtr($class, '\\', '/').'.php';
|
||||
|
||||
if (file_exists($path) && is_readable($path)) {
|
||||
require_once $path;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user