Author: fabien
Date: 2010-03-10 17:45:04 +0100 (Wed, 10 Mar 2010)
New Revision: 28464
Modified:
branches/2.0/src/Symfony/Components/Console/Command/Command.php
Log:
Merge branch 'master' of git://github.com/symfony/symfony
Modified: branches/2.0/src/Symfony/Components/Console/Command/Command.php
===================================================================
--- branches/2.0/src/Symfony/Components/Console/Command/Command.php
2010-03-10 15:15:07 UTC (rev 28463)
+++ branches/2.0/src/Symfony/Components/Console/Command/Command.php
2010-03-10 16:45:04 UTC (rev 28464)
@@ -424,6 +424,20 @@
}
/**
+ * Gets a helper instance by name.
+ *
+ * @param string $name The helper name
+ *
+ * @return mixed The helper value
+ *
+ * @throws \InvalidArgumentException if the helper is not defined
+ */
+ public function __get($name)
+ {
+ return $this->application->getHelperSet()->get($name);
+ }
+
+ /**
* Returns a text representation of the command.
*
* @return string A string representing the command
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.