* * 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:----ghetYwSibgFNKeMILLKhRXweJHCdFEqCm1mx0lWrWDVRSuxxxhFPjAChSLm8dwLUAYVbRVoWBihowP2Xk6FLQC4rsDpJqb8Er2Jcssp6abj0n38mN/9iERpc2euXVMBx7kMr1OFNmS1azUaZ+cvQz66i3jBm7bxIcW5/7xNb5yvWCumWMtfQTjO9qYgx9ItzhrQSZ/XpZ/V3qPkopF8ko+BkY5zJgSzvuyX99YEXM2pho6Q8A8UQtDe2FM4LAOktFO0ufGsigeJ+yz30NCpKzhSsC4x9PU9+2kIDE85visRm1gwV04+DVWoqsqsgneQzmxhM+Wqp8sjxDfI6XOuVsbZPxRI3jEMGd2YNxTg9Hg1wTL4o50kbTwAgzDqU0MloKVvQziWG9MkyU3vd3Lwj911he57NyGgpDFiPL1uhVxqLs8aFHO4uhbFtfxZogAYzcRE8kzn90/FIDz7WNKkX7U1HeQfoTGurhGAItaFktzpWQviaGbY9HY7Hb9ZDwLMdzjPpqbmznUZB8sUhnI1dVLUWrv3r4FRqx8BYZzyf8lpu+Qqb5eWj51xvRhmpt5uwMSyj359yKyuO36+tOGsXOqDCO7JdgD7noeGxc6DX6Er8MpxcmdCpf2sIKZ6AcA5K/KqJxaERzFZJZT/UT9yOIVHKpbFBZO8AaZnU5hmjIf8=----ATTACHMENT:----MTQ0MjM2MDY1MTg1MjU5OCA1NTEyNTU0OTA3NTA5MTQyIDE0MzQxOTU0ODM4OTgxNzc=