440c36f537
Conflicts: Command/PopulateCommand.php Command/SearchCommand.php DependencyInjection/Configuration.php Doctrine/AbstractElasticaToModelTransformer.php Doctrine/AbstractListener.php Doctrine/MongoDB/ElasticaToModelTransformer.php Doctrine/ORM/ElasticaToModelTransformer.php Doctrine/RepositoryManager.php Finder/TransformedFinder.php Paginator/PaginatorAdapterInterface.php Paginator/RawPaginatorAdapter.php Persister/ObjectPersister.php Propel/ElasticaToModelTransformer.php Subscriber/PaginateElasticaQuerySubscriber.php Tests/DataCollector/ElasticaDataCollectorTest.php Tests/Doctrine/AbstractProviderTest.php Tests/Doctrine/RepositoryManagerTest.php Tests/Manager/RepositoryManagerTest.php Tests/RepositoryTest.php Transformer/ElasticaToModelTransformerCollection.php composer.json
20 lines
543 B
PHP
20 lines
543 B
PHP
<?php
|
|
|
|
if (file_exists($file = __DIR__.'/../vendor/autoload.php')) {
|
|
$loader = require_once $file;
|
|
} else {
|
|
throw new RuntimeException('Install dependencies to run test suite.');
|
|
}
|
|
|
|
spl_autoload_register(function($class) {
|
|
if (0 === strpos($class, 'FOS\\ElasticaBundle\\')) {
|
|
$path = __DIR__.'/../'.implode('/', array_slice(explode('\\', $class), 2)).'.php';
|
|
if (!stream_resolve_include_path($path)) {
|
|
return false;
|
|
}
|
|
require_once $path;
|
|
return true;
|
|
}
|
|
return false;
|
|
});
|