<?php

// app/config/routing.php
use Symfony\Component\Routing\RouteCollection;

$kernel = \KupShop\KupShopBundle\Util\Compat\ServiceContainer::getKernel();
$env = '';

if ($kernel->getEnvironment() == 'dev') {
    $env = '_dev';
}

$collection = new RouteCollection();
$collection->addCollection(
    $loader->import("@KupShopBundle/Resources/config/routing{$env}.yml")
);

return $collection;
