Skip to content

Commit

Permalink
fixed typos and autoloader
Browse files Browse the repository at this point in the history
  • Loading branch information
everzet committed May 18, 2012
1 parent 8a074e8 commit 09b6cc1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 2 additions & 0 deletions build.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* with this source code in the file LICENSE.
*/

chdir(__DIR__);

$filename = 'symfony2_extension.phar';

if (file_exists($filename)) {
Expand Down
15 changes: 6 additions & 9 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@
* with this source code in the file LICENSE.
*/

require __DIR__.'/src/Behat/Symfony2Extension/Compiler/KernelInitializationPass.php';
require __DIR__.'/src/Behat/Symfony2Extension/Console/Processor/InitProcessor.php';
require __DIR__.'/src/Behat/Symfony2Extension/Console/Processor/LocatorProcessor.php';
require __DIR__.'/src/Behat/Symfony2Extension/Context/ClassGuesser/BundleContextClassGuesser.php';
require __DIR__.'/src/Behat/Symfony2Extension/Context/Initializer/KernelAwareInitializer.php';
require __DIR__.'/src/Behat/Symfony2Extension/Context/KernelAwareInterface.php';
require __DIR__.'/src/Behat/Symfony2Extension/Context/KernelDictionary.php';
require __DIR__.'/src/Behat/Symfony2Extension/Driver/KernelDriver.php';
require __DIR__.'/src/Behat/Symfony2Extension/Driver/Extension.php';
spl_autoload_register(function($class) {
if (false !== strpos($class, 'Behat\\Symfony2Extension')) {
require_once(__DIR__.'/src/'.str_replace('\\', '/', $class).'.php');
return true;
}
}, true, false);

return new Behat\Symfony2Extension\Extension;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Behat\MinkExtension\Compiler;
namespace Behat\Symfony2Extension\Compiler;

use Symfony\Component\DependencyInjection\ContainerBuilder,
Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
Expand Down Expand Up @@ -52,7 +52,7 @@ public function process(ContainerBuilder $container)
$container->setParameter(
'behat.paths.features',
$bundle->getPath().DIRECTORY_SEPARATOR.
$this->container->getParameter('behat.symfony2_extension.context.path_suffix');
$this->container->getParameter('behat.symfony2_extension.context.path_suffix')
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Symfony2Extension/Context/KernelDictionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ trait KernelDictionary
*
* @param KernelInterface $kernel HttpKernel instance
*/
public function setKernel(KernelInterface $kernel);
public function setKernel(KernelInterface $kernel)
{
$this->kernel = $kernel;
}
Expand Down

0 comments on commit 09b6cc1

Please sign in to comment.