X7ROOT File Manager
Current Path:
/opt/alt/php54/usr/share/pear/Symfony/Component/DependencyInjection
opt
/
alt
/
php54
/
usr
/
share
/
pear
/
Symfony
/
Component
/
DependencyInjection
/
??
..
??
Alias.php
(1.25 KB)
??
Compiler
??
Container.php
(16.57 KB)
??
ContainerAware.php
(873 B)
??
ContainerAwareInterface.php
(714 B)
??
ContainerAwareTrait.php
(755 B)
??
ContainerBuilder.php
(32.63 KB)
??
ContainerInterface.php
(3.77 KB)
??
Definition.php
(14.3 KB)
??
DefinitionDecorator.php
(4.58 KB)
??
Dumper
??
Exception
??
ExpressionLanguage.php
(1.19 KB)
??
Extension
??
IntrospectableContainerInterface.php
(834 B)
??
LazyProxy
??
Loader
??
Parameter.php
(767 B)
??
ParameterBag
??
Reference.php
(1.54 KB)
??
Scope.php
(877 B)
??
ScopeInterface.php
(538 B)
??
SimpleXMLElement.php
(3.32 KB)
??
TaggedContainerInterface.php
(749 B)
??
Variable.php
(823 B)
??
autoloader.php
(349 B)
Editing: ExpressionLanguage.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection; use Symfony\Component\ExpressionLanguage\ExpressionLanguage as BaseExpressionLanguage; /** * Adds some function to the default ExpressionLanguage. * * To get a service, use service('request'). * To get a parameter, use parameter('kernel.debug'). * * @author Fabien Potencier <fabien@symfony.com> */ class ExpressionLanguage extends BaseExpressionLanguage { protected function registerFunctions() { parent::registerFunctions(); $this->register('service', function ($arg) { return sprintf('$this->get(%s)', $arg); }, function (array $variables, $value) { return $variables['container']->get($value); }); $this->register('parameter', function ($arg) { return sprintf('$this->getParameter(%s)', $arg); }, function (array $variables, $value) { return $variables['container']->getParameter($value); }); } }
Upload File
Create Folder