Skip to content

Commit

Permalink
fix class name
Browse files Browse the repository at this point in the history
  • Loading branch information
matlad authored and paveljanda committed Aug 11, 2019
1 parent eb23f53 commit eae6c5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DI/ApiRouterExtension.php
Expand Up @@ -19,6 +19,7 @@
use Nette\DI\CompilerExtension;
use Nette\DI\ContainerBuilder;
use Nette\DI\Definitions\Definition;
use Nette\PhpGenerator\ClassType as GClassType;
use Nette\Reflection\ClassType;
use Nette\Reflection\Method;
use Ublaboo\ApiRouter\ApiRoute;
Expand Down Expand Up @@ -213,7 +214,7 @@ private function _getConfig(): array
return (array) $config;
}

public function afterCompile(Nette\PhpGenerator\ClassType $class)
public function afterCompile(GClassType $class)
{
parent::afterCompile($class);
$class->getMethod('initialize')->addBody('$this->getService(?);', [$this->definition->getName()]);
Expand Down

0 comments on commit eae6c5b

Please sign in to comment.