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