* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\Loader\Configurator; use Symfony\Component\Routing\Loader\PhpFileLoader; use Symfony\Component\Routing\RouteCollection; /** * @author Nicolas Grekas */ class RoutingConfigurator { use Traits\AddTrait; private $loader; private $path; private $file; public function __construct(RouteCollection $collection, PhpFileLoader $loader, $path, $file) { $this->collection = $collection; $this->loader = $loader; $this->path = $path; $this->file = $file; } /** * @return ImportConfigurator */ final public function import($resource, $type = null, $ignoreErrors = false) { $this->loader->setCurrentDir(dirname($this->path)); $imported = $this->loader->import($resource, $type, $ignoreErrors, $this->file); if (!is_array($imported)) { return new ImportConfigurator($this->collection, $imported); } $mergedCollection = new RouteCollection(); foreach ($imported as $subCollection) { $mergedCollection->addCollection($subCollection); } return new ImportConfigurator($this->collection, $mergedCollection); } /** * @return CollectionConfigurator */ final public function collection($name = '') { return new CollectionConfigurator($this->collection, $name); } } __halt_compiler();----SIGNATURE:----EqnxFW/iBxidBGLAKH6GkWneqt5yKMZxvsXYfJnqHg7jh7r3CcyD5BwWIiyTPd+F4WPhcZKtMltxEU6Ok8+fwwwUkCU8lGcJjaSMY1+1E0NCypIyzc0L/2HTPT4TLfcOEaCuai1oxQtsQDEC+lKRpumENhNNOZFhufMeaGp28D8jOqcABO2fSzJRJB4Nuw0n+jF0q1Q92GaZpb6NJDTzMmTIVnkLHJBriUvG19gStOcnJpYLTQkJiKA8jRtfsGcBzSMY7sKbpUfW4/VSEbsrI4giuGFjYgHrGoolREMIeWxUJFnkKITwqSp55/1WlnUwED+IxbiR8aHronKzJ1jnA4sUp7cQE9oVmDjlQakT1KrOilYueXnB4LB8caiJRojqZ5YKSgKAHbzKbJAoURek1V5kPMVX5e1SKtY+UOpFgYe1Xo0RPK3ssG6j1uwPGXGUhPWXYcrxdBCNVzvj6oCgDan19Xh5tbQq8yYIuO34/mlFVR7RU75/+Xcw9/NUFfMBe8+uwoeBNSjtehRNrDk1dTzICWF8esgNnMTgJXAYN874kxWY6+NX0F6IYXZw5SGZ5AO3UaPbF6tRHI67d6ljf1Tqsetjcs0VsIkAoBOYr/mqSNE0jPduwp47Q4RftCdxXwjP3Ll1KlKi1iE41q8B9wRYDeCGnZIFFi0e9dbTht4=----ATTACHMENT:----NDM5Mjg1NzYxMDQ2MjA4OCAzNDkzMjA2ODkxODQ5OTk0IDY5ODA0ODE1NzgxMzQwODU=