mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
afcae36eec
"Behat" as a vendor namespace is already taken by the project of the same name.
20 lines
525 B
PHP
20 lines
525 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Behat/SilverStripeExtension
|
|
*
|
|
* (c) Michał Ochman <ochman.d.michal@gmail.com>
|
|
*
|
|
* This source file is subject to the MIT license that is bundled
|
|
* with this source code in the file LICENSE.
|
|
*/
|
|
|
|
spl_autoload_register(function($class)
|
|
{
|
|
if (false !== strpos($class, 'SilverStripe\\BehatExtension')) {
|
|
require_once(__DIR__ . '/src/' . str_replace('\\', '/', $class) . '.php');
|
|
return true;
|
|
}
|
|
}, true, false);
|
|
|
|
return new SilverStripe\BehatExtension\Extension; |