Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

Commit

Permalink
#112 #113 CS -alignment, removed unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jun 1, 2016
1 parent 500e805 commit d2aafcc
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions benchmarks/SetNewServicesBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,25 @@
class SetNewServicesBench
{
const NUM_SERVICES = 100;

/**
* @var ServiceManager
*/
private $sm;

public function __construct()
{

$config = [
'factories' => [
'factory1' => BenchAsset\FactoryFoo::class,
'factories' => [
'factory1' => BenchAsset\FactoryFoo::class,
],
'invokables' => [
'invokables' => [
'invokable1' => BenchAsset\Foo::class,
],
'services' => [
'services' => [
'service1' => new \stdClass(),
],
'aliases' => [
'aliases' => [
'factoryAlias1' => 'factory1',
'recursiveFactoryAlias1' => 'factoryAlias1',
'recursiveFactoryAlias2' => 'recursiveFactoryAlias1',
Expand All @@ -43,13 +42,12 @@ public function __construct()
BenchAsset\AbstractFactoryFoo::class
],
];

$service = new \stdClass();

for ($i = 0; $i <= self::NUM_SERVICES; $i++) {
$config['factories']["factory_$i"] = BenchAsset\FactoryFoo::class;
$config['aliases']["alias_$i"] = "service_$i";
$config['factories']["factory_$i"] = BenchAsset\FactoryFoo::class;
$config['aliases']["alias_$i"] = "service_$i";
}

$this->sm = new ServiceManager($config);
}

Expand Down

0 comments on commit d2aafcc

Please sign in to comment.