@@ -57,29 +57,3 @@ |
||
| 57 | 57 | public function toString(Nette\PhpGenerator\ClassType $class): string |
| 58 | 58 | { |
| 59 | 59 | $class->setComment(<<<'COMMENT' |
| 60 | -/** |
|
| 61 | - * Main DependencyInjection Container. This class has been auto-generated |
|
| 62 | - * by the Nette Dependency Injection Component. |
|
| 63 | - * |
|
| 64 | - * Automatically detects if "container" property are presented in class or uses |
|
| 65 | - * global container as fallback. |
|
| 66 | - * |
|
| 67 | - */ |
|
| 68 | -COMMENT); |
|
| 69 | - |
|
| 70 | - return parent::toString($class); |
|
| 71 | - } |
|
| 72 | - |
|
| 73 | - public function generateMethod(Definitions\Definition $def): Nette\PhpGenerator\Method |
|
| 74 | - { |
|
| 75 | - $method = parent::generateMethod($def); |
|
| 76 | - $name = $def->getName(); |
|
| 77 | - $comment = 'This service can be accessed by it\'s name in lower case,'; |
|
| 78 | - $comment2 = "thus `%s`, using container get or make methods.\n\n@return %s"; |
|
| 79 | - |
|
| 80 | - $method->setProtected(); |
|
| 81 | - $method->setComment(\sprintf($comment . "\n" . $comment2, $name, $def->getType())); |
|
| 82 | - |
|
| 83 | - return $method; |
|
| 84 | - } |
|
| 85 | -} |
|
@@ -57,29 +57,3 @@ |
||
| 57 | 57 | public function toString(Nette\PhpGenerator\ClassType $class): string |
| 58 | 58 | { |
| 59 | 59 | $class->setComment(<<<'COMMENT' |
| 60 | -/** |
|
| 61 | - * Main DependencyInjection Container. This class has been auto-generated |
|
| 62 | - * by the Nette Dependency Injection Component. |
|
| 63 | - * |
|
| 64 | - * Automatically detects if "container" property are presented in class or uses |
|
| 65 | - * global container as fallback. |
|
| 66 | - * |
|
| 67 | - */ |
|
| 68 | -COMMENT); |
|
| 69 | - |
|
| 70 | - return parent::toString($class); |
|
| 71 | - } |
|
| 72 | - |
|
| 73 | - public function generateMethod(Definitions\Definition $def): Nette\PhpGenerator\Method |
|
| 74 | - { |
|
| 75 | - $method = parent::generateMethod($def); |
|
| 76 | - $name = $def->getName(); |
|
| 77 | - $comment = 'This service can be accessed by it\'s name in lower case,'; |
|
| 78 | - $comment2 = "thus `%s`, using container get or make methods.\n\n@return %s"; |
|
| 79 | - |
|
| 80 | - $method->setProtected(); |
|
| 81 | - $method->setComment(\sprintf($comment . "\n" . $comment2, $name, $def->getType())); |
|
| 82 | - |
|
| 83 | - return $method; |
|
| 84 | - } |
|
| 85 | -} |
|