8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c72735 commit d229ce5Copy full SHA for d229ce5
src/Symfony/Components/Console/Command/Command.php
@@ -423,6 +423,20 @@ protected function getHelper($name)
423
return $this->application->getHelperSet()->get($name);
424
}
425
426
+ /**
427
+ * Gets a helper instance by name.
428
+ *
429
+ * @param string $name The helper name
430
431
+ * @return mixed The helper value
432
433
+ * @throws \InvalidArgumentException if the helper is not defined
434
+ */
435
+ public function __get($name)
436
+ {
437
+ return $this->application->getHelperSet()->get($name);
438
+ }
439
+
440
/**
441
* Returns a text representation of the command.
442
*
0 commit comments