init.php 503 B

12345678910111213141516171819
  1. <?php
  2. /*
  3. * This file is part of the Behat
  4. *
  5. * (c) Konstantin Kudryashov <ever.zet@gmail.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. spl_autoload_register(function($class) {
  11. if (false !== strpos($class, 'Behat\\MinkExtension')) {
  12. require_once(__DIR__.'/src/'.str_replace('\\', '/', $class).'.php');
  13. return true;
  14. }
  15. }, true, false);
  16. return new Behat\MinkExtension\ServiceContainer\MinkExtension;