if ($deprecationInfo =
$this->
parseDeprecation($node,
$path)) { $alias->
setDeprecated($deprecationInfo['package'
],
$deprecationInfo['version'
],
$deprecationInfo['message'
]);
} return;
} $schemes =
preg_split('/[\s,\|]++/',
$node->
getAttribute('schemes'
), -1, \PREG_SPLIT_NO_EMPTY
);
$methods =
preg_split('/[\s,\|]++/',
$node->
getAttribute('methods'
), -1, \PREG_SPLIT_NO_EMPTY
);
[$defaults,
$requirements,
$options,
$condition,
$paths, /* $prefixes */,
$hosts] =
$this->
parseConfigs($node,
$path);
if (!
$paths && '' ===
$node->
getAttribute('path'
)) { throw new \
InvalidArgumentException(sprintf('The <route> element in file "%s" must have a "path" attribute or <path> child nodes.',
$path));
} if ($paths && '' !==
$node->
getAttribute('path'
)) { throw new \
InvalidArgumentException(sprintf('The <route> element in file "%s" must not have both a "path" attribute and <path> child nodes.',
$path));
} $routes =
$this->
createLocalizedRoute($collection,
$id,
$paths ?:
$node->
getAttribute('path'
));
$routes->
addDefaults($defaults);