Skip to content

Commit

Permalink
Fix class names
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibor Kotosz committed Nov 8, 2015
1 parent 378dc91 commit 430db65
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions src/Bex/Behat/ExtensionDriverLocator/DriverClassNameResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Bex\Behat\ExtensionDriverLocator;

use Bex\Behat\ExtensionDriverLocator\ClassValidator;
use Bex\Behat\ExtensionDriverLocator\DriverClassValidator;
use Symfony\Component\DependencyInjection\Container as DIContainer;

class DriverClassNameResolver
Expand All @@ -13,15 +13,15 @@ class DriverClassNameResolver
private $namespace;

/**
* @var ClassValidator
* @var DriverClassValidator
*/
private $classValidator;

/**
* @param string $namespace
* @param ClassValidator $classValidator
* @param string $namespace
* @param DriverClassValidator $classValidator
*/
public function __construct($namespace, ClassValidator $classValidator)
public function __construct($namespace, DriverClassValidator $classValidator)
{
$this->namespace = $namespace;
$this->classValidator = $classValidator;
Expand Down
14 changes: 7 additions & 7 deletions src/Bex/Behat/ExtensionDriverLocator/DriverLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Bex\Behat\ExtensionDriverLocator;

use Bex\Behat\ExtensionDriverLocator\DriverClassNameResolver;
use Bex\Behat\ExtensionDriverLocator\DriverClassValidator;
use Bex\Behat\ExtensionDriverLocator\DriverInterface;
use Bex\Behat\ExtensionDriverLocator\ClassNameResolver;
use Bex\Behat\ExtensionDriverLocator\ClassValidator;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\NodeInterface;
use Symfony\Component\Config\Definition\Processor;
Expand All @@ -13,7 +13,7 @@
class DriverLocator
{
/**
* @var ClassNameResolver
* @var DriverClassNameResolver
*/
private $classNameResolver;

Expand All @@ -23,9 +23,9 @@ class DriverLocator
private $drivers = [];

/**
* @param ClassNameResolver $classNameResolver
* @param DriverClassNameResolver $classNameResolver
*/
public function __construct(ClassNameResolver $classNameResolver)
public function __construct(DriverClassNameResolver $classNameResolver)
{
$this->classNameResolver = $classNameResolver;
}
Expand All @@ -38,7 +38,7 @@ public function __construct(ClassNameResolver $classNameResolver)
*/
public static function getInstance($namespace, $parent = '')
{
return new self(new ClassNameResolver($namespace, new ClassValidator($parent)));
return new self(new DriverClassNameResolver($namespace, new DriverClassValidator($parent)));
}

/**
Expand Down Expand Up @@ -66,7 +66,7 @@ public function getDrivers()
}

/**
* @param array $driverKeys
* @param array $driverKeys
*
* @return DriverInterface[]
*/
Expand Down
12 changes: 6 additions & 6 deletions src/Bex/Behat/ExtensionDriverLocator/DriverNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

namespace Bex\Behat\ExtensionDriverLocator;

use Bex\Behat\ExtensionDriverLocator\ClassNameResolver;
use Bex\Behat\ExtensionDriverLocator\ClassValidator;
use Bex\Behat\ExtensionDriverLocator\DriverClassNameResolver;
use Bex\Behat\ExtensionDriverLocator\DriverClassValidator;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;

class DriverNodeBuilder
{
/**
* @var ClassNameResolver
* @var DriverClassNameResolver
*/
private $driverClassNameResolver;

/**
* @param ClassNameResolver $driverClassNameResolver
* @param DriverClassNameResolver $driverClassNameResolver
*/
public function __construct(ClassNameResolver $driverClassNameResolver)
public function __construct(DriverClassNameResolver $driverClassNameResolver)
{
$this->driverClassNameResolver = $driverClassNameResolver;
}
Expand All @@ -29,7 +29,7 @@ public function __construct(ClassNameResolver $driverClassNameResolver)
*/
public static function getInstance($namespace, $parent = '')
{
return new self(new ClassNameResolver($namespace, new ClassValidator($parent)));
return new self(new DriverClassNameResolver($namespace, new DriverClassValidator($parent)));
}

/**
Expand Down

0 comments on commit 430db65

Please sign in to comment.