changed calls to has() to use the new proxy method
This commit is contained in:
parent
2ccaafa561
commit
4c17ce8e5e
@ -27,7 +27,7 @@ class PropelExtension extends Extension
|
|||||||
$loader->load($this->resources['propel']);
|
$loader->load($this->resources['propel']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$container->getParameterBag()->has('propel.path')) {
|
if (!$container->has('propel.path')) {
|
||||||
if (!isset($config['path'])) {
|
if (!isset($config['path'])) {
|
||||||
throw new \InvalidArgumentException('The "path" parameter is mandatory.');
|
throw new \InvalidArgumentException('The "path" parameter is mandatory.');
|
||||||
}
|
}
|
||||||
|
@ -109,9 +109,9 @@ class GraphvizDumper extends Dumper
|
|||||||
$edges = array();
|
$edges = array();
|
||||||
foreach ($arguments as $argument) {
|
foreach ($arguments as $argument) {
|
||||||
if (is_object($argument) && $argument instanceof Parameter) {
|
if (is_object($argument) && $argument instanceof Parameter) {
|
||||||
$argument = $this->container->getParameterBag()->has($argument) ? $this->container->getParameter($argument) : null;
|
$argument = $this->container->has($argument) ? $this->container->getParameter($argument) : null;
|
||||||
} elseif (is_string($argument) && preg_match('/^%([^%]+)%$/', $argument, $match)) {
|
} elseif (is_string($argument) && preg_match('/^%([^%]+)%$/', $argument, $match)) {
|
||||||
$argument = $this->container->getParameterBag()->has($match[1]) ? $this->container->getParameter($match[1]) : null;
|
$argument = $this->container->has($match[1]) ? $this->container->getParameter($match[1]) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($argument instanceof Reference) {
|
if ($argument instanceof Reference) {
|
||||||
|
@ -412,7 +412,7 @@ EOF;
|
|||||||
|
|
||||||
public function dumpParameter($name)
|
public function dumpParameter($name)
|
||||||
{
|
{
|
||||||
if ($this->container->isFrozen() && $this->container->getParameterBag()->has($name)) {
|
if ($this->container->isFrozen() && $this->container->has($name)) {
|
||||||
return $this->dumpValue($this->container->getParameter($name), false);
|
return $this->dumpValue($this->container->getParameter($name), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user