/opt/alt/php55/usr/share/pear/Symfony/Component/DependencyInjection
NameSizeModeActions
Compiler/-0755rm
Dumper/-0755rm
Exception/-0755rm
Extension/-0755rm
LazyProxy/-0755rm
Loader/-0755rm
ParameterBag/-0755rm
Alias.php12760644editdlrm
autoloader.php3490644editdlrm
Container.php169650644editdlrm
ContainerAware.php8730644editdlrm
ContainerAwareInterface.php7140644editdlrm
ContainerAwareTrait.php7550644editdlrm
ContainerBuilder.php334130644editdlrm
ContainerInterface.php38580644editdlrm
Definition.php146480644editdlrm
DefinitionDecorator.php46880644editdlrm
ExpressionLanguage.php12150644editdlrm
IntrospectableContainerInterface.php8340644editdlrm
Parameter.php7670644editdlrm
Reference.php15800644editdlrm
Scope.php8770644editdlrm
ScopeInterface.php5380644editdlrm
SimpleXMLElement.php34010644editdlrm
TaggedContainerInterface.php7490644editdlrm
Variable.php8230644editdlrm
Edit: /opt/alt/php55/usr/share/pear/Symfony/Component/DependencyInjection/SimpleXMLElement.php (3401B)
* * 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\Config\Util\XmlUtils; use Symfony\Component\ExpressionLanguage\Expression; /** * SimpleXMLElement class. * * @author Fabien Potencier */ class SimpleXMLElement extends \SimpleXMLElement { /** * Converts an attribute as a PHP type. * * @param string $name * * @return mixed */ public function getAttributeAsPhp($name) { return self::phpize($this[$name]); } /** * Returns arguments as valid PHP types. * * @param string $name * @param Boolean $lowercase * * @return mixed */ public function getArgumentsAsPhp($name, $lowercase = true) { $arguments = array(); foreach ($this->$name as $arg) { if (isset($arg['name'])) { $arg['key'] = (string) $arg['name']; } $key = isset($arg['key']) ? (string) $arg['key'] : (!$arguments ? 0 : max(array_keys($arguments)) + 1); // parameter keys are case insensitive if ('parameter' == $name && $lowercase) { $key = strtolower($key); } // this is used by DefinitionDecorator to overwrite a specific // argument of the parent definition if (isset($arg['index'])) { $key = 'index_'.$arg['index']; } switch ($arg['type']) { case 'service': $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE; if (isset($arg['on-invalid']) && 'ignore' == $arg['on-invalid']) { $invalidBehavior = ContainerInterface::IGNORE_ON_INVALID_REFERENCE; } elseif (isset($arg['on-invalid']) && 'null' == $arg['on-invalid']) { $invalidBehavior = ContainerInterface::NULL_ON_INVALID_REFERENCE; } if (isset($arg['strict'])) { $strict = self::phpize($arg['strict']); } else { $strict = true; } $arguments[$key] = new Reference((string) $arg['id'], $invalidBehavior, $strict); break; case 'expression': $arguments[$key] = new Expression((string) $arg); break; case 'collection': $arguments[$key] = $arg->getArgumentsAsPhp($name, false); break; case 'string': $arguments[$key] = (string) $arg; break; case 'constant': $arguments[$key] = constant((string) $arg); break; default: $arguments[$key] = self::phpize($arg); } } return $arguments; } /** * Converts an xml value to a PHP type. * * @param mixed $value * * @return mixed */ public static function phpize($value) { return XmlUtils::phpize($value); } }