Skip to content

Commit

Permalink
Remove usage of deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Sep 29, 2017
1 parent e9be51c commit cd0c4a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"require": {
"php": "^7.1.0",
"nette/di": "^3.0.0",
"nette/di": "^3.0.0@dev",
"nette/utils": "^3.0.0"
},
"require-dev": {
Expand Down
8 changes: 4 additions & 4 deletions src/DI/ServiceCollectionsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ public function loadConfiguration(): void
$builder = $this->getContainerBuilder();

$builder->addDefinition($this->prefix('resolverFactory'))
->setClass(ResolverFactory::class);
->setType(ResolverFactory::class);

$builder->addDefinition($this->prefix('iteratorFactory'))
->setClass(IteratorFactory::class);
->setType(IteratorFactory::class);

$builder->addDefinition($this->prefix('iteratorResolverFactory'))
->setClass(IteratorResolverFactory::class);
->setType(IteratorResolverFactory::class);
}

public function beforeCompile(): void
Expand Down Expand Up @@ -156,7 +156,7 @@ private function addService(string $name, string $class, string $factory, array
$this
->getContainerBuilder()
->addDefinition($this->prefix($name))
->setClass($class)
->setType($class)
->setFactory(sprintf('@%s::create', $factory), [$services])
->setAutowired(false);
}
Expand Down

0 comments on commit cd0c4a3

Please sign in to comment.