"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

RouterDebugCommand.php  (phplist-3.4.5.tgz):RouterDebugCommand.php  (phplist-3.4.6.tgz)
skipping to change at line 157 skipping to change at line 157
{ {
if ($route->hasDefault('_controller')) { if ($route->hasDefault('_controller')) {
$nameParser = new ControllerNameParser($this->getApplication()->getK ernel()); $nameParser = new ControllerNameParser($this->getApplication()->getK ernel());
try { try {
$route->setDefault('_controller', $nameParser->build($route->get Default('_controller'))); $route->setDefault('_controller', $nameParser->build($route->get Default('_controller')));
} catch (\InvalidArgumentException $e) { } catch (\InvalidArgumentException $e) {
} }
} }
} }
/**
* @return callable|null
*/
private function extractCallable(Route $route) private function extractCallable(Route $route)
{ {
if (!$route->hasDefault('_controller')) { if (!$route->hasDefault('_controller')) {
return; return null;
} }
$controller = $route->getDefault('_controller'); $controller = $route->getDefault('_controller');
if (1 === substr_count($controller, ':')) { if (1 === substr_count($controller, ':')) {
list($service, $method) = explode(':', $controller); list($service, $method) = explode(':', $controller);
try { try {
return sprintf('%s::%s', \get_class($this->getApplication()->get Kernel()->getContainer()->get($service)), $method); return sprintf('%s::%s', \get_class($this->getApplication()->get Kernel()->getContainer()->get($service)), $method);
} catch (ServiceNotFoundException $e) { } catch (ServiceNotFoundException $e) {
} }
} }
$nameParser = new ControllerNameParser($this->getApplication()->getKerne l()); $nameParser = new ControllerNameParser($this->getApplication()->getKerne l());
try { try {
$shortNotation = $nameParser->build($controller); $shortNotation = $nameParser->build($controller);
$route->setDefault('_controller', $shortNotation); $route->setDefault('_controller', $shortNotation);
return $controller; return $controller;
} catch (\InvalidArgumentException $e) { } catch (\InvalidArgumentException $e) {
} }
return null;
} }
} }
 End of changes. 3 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)