* * 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:----BvHrV/f0D+D0kxAdlMDQreeTwiTkvpCi5PJ/FSP6vtZ1h9KugO2oLawen0M0TqK3TrCZOOLCQ8L5sGYdrbDuayH6icgOpjpyhBZ295rlSBqs3qYYqjHhbtpAg8RBJ0Xa0tSqi73Fw3CKqB7UgMRrEE0j2wRlF8RBaJ6VgkGNTxYEhO2SaJCt9TSwkuXhzW7a/b9ni8yfEc6RUzM2/TBg0SZS2kmYeEQmG+yQ4inRmeOpqRQkTa44hef2x75lATOH3Ay3nT1GL1e0q7hllJMIkU3naFvdFATGlnsM6Lh+e3iVptRZqno1GKL4kKqzGLlv9jbpa75xVIzTDNPM3YYCSRRvUNhkdB2AQGuyP4+4E0m1JnmeNvOR075M6zozdWBttO1SA3TO8/4cuZhXHr0GkJS6BN30VlFFm+KrWkj8Fy9jxXQ4vRmWiaTKG4qMxqRzqDOoinWDaQ+e5D9b65hAEkmrsOW3IbgRQ2hzo/pKYO/PD5FlJlSFew4XANfsDHXozRsFZknYf21m3tH81c0K8jA5EAmeljYH9m4nttU6UDrXYJxwLbGh3C7WC8IrLToXFpZDScRud6dp9BJTyzMwnBr16DuFZQWZAEVdcAfnts5AC079umW46YoVCOaXQ0mTgcwgfEwvqD074H1Blx8qAxvDrJw/MhMK24VxOkJExyU=----ATTACHMENT:----ODY4MTE0NDU0MDIzMjAwIDcyNjYyNzYyNjgzMDk4OTQgNjcyMzE1MDY3NzE0OTU5OQ==