2012-08-15 16:50:19 +02:00
|
|
|
<?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.
|
|
|
|
*/
|
|
|
|
|
2016-08-10 03:35:13 +02:00
|
|
|
spl_autoload_register(function ($class) {
|
2012-10-16 22:01:16 +02:00
|
|
|
if (false !== strpos($class, 'SilverStripe\\BehatExtension')) {
|
2012-08-15 16:50:19 +02:00
|
|
|
require_once(__DIR__ . '/src/' . str_replace('\\', '/', $class) . '.php');
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}, true, false);
|
|
|
|
|
2016-08-10 03:35:13 +02:00
|
|
|
return new SilverStripe\BehatExtension\Extension;
|