Skip to content

Commit

Permalink
Cleaned Bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
francisbesset committed Mar 27, 2011
1 parent 0ee8141 commit dad4227
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 67 deletions.
4 changes: 2 additions & 2 deletions BeSimpleI18nRoutingBundle.php
Expand Up @@ -2,9 +2,9 @@

namespace BeSimple\I18nRoutingBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use BeSimple\I18nRoutingBundle\DependencyInjection\Compiler\OverrideRoutingCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class BeSimpleI18nRoutingBundle extends Bundle
{
Expand Down
4 changes: 2 additions & 2 deletions DependencyInjection/BeSimpleI18nRoutingExtension.php
Expand Up @@ -2,10 +2,10 @@

namespace BeSimple\I18nRoutingBundle\DependencyInjection;

use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

class BeSimpleI18nRoutingExtension extends Extension
{
Expand Down
1 change: 1 addition & 0 deletions Routing/I18nRoute.php
Expand Up @@ -2,6 +2,7 @@

namespace BeSimple\I18nRoutingBundle\Routing;

use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;

class I18nRoute
Expand Down
7 changes: 4 additions & 3 deletions Routing/Loader/XmlFileLoader.php
Expand Up @@ -2,9 +2,10 @@

namespace BeSimple\I18nRoutingBundle\Routing\Loader;

use BeSimple\I18nRoutingBundle\Routing\I18nRoute;
use Symfony\Component\Routing\Loader\XmlFileLoader as BaseXmlFileLoader;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
use BeSimple\I18nRoutingBundle\Routing;

class XmlFileLoader extends BaseXmlFileLoader
{
Expand Down Expand Up @@ -48,11 +49,11 @@ protected function parseRoute(RouteCollection $collection, \DOMElement $definiti
}

if ($locales) {
$route = new Routing\I18nRoute((string) $definition->getAttribute('id'), $locales, $defaults, $requirements, $options);
$route = new I18nRoute((string) $definition->getAttribute('id'), $locales, $defaults, $requirements, $options);

$collection->addCollection($route->getCollection());
} else {
$route = new Routing\Route((string) $definition->getAttribute('pattern'), $defaults, $requirements, $options);
$route = new Route((string) $definition->getAttribute('pattern'), $defaults, $requirements, $options);

$collection->add((string) $definition->getAttribute('id'), $route);
}
Expand Down
2 changes: 1 addition & 1 deletion Routing/Loader/YamlFileLoader.php
Expand Up @@ -3,9 +3,9 @@
namespace BeSimple\I18nRoutingBundle\Routing\Loader;

use BeSimple\I18nRoutingBundle\Routing\I18nRoute;
use BeSimple\I18nRoutingBundle\Routing\Route;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Routing\Loader\YamlFileLoader as BaseYamlFileLoader;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Yaml\Yaml;

Expand Down
58 changes: 0 additions & 58 deletions Routing/Route.php

This file was deleted.

2 changes: 1 addition & 1 deletion Routing/Router.php
Expand Up @@ -2,9 +2,9 @@

namespace BeSimple\I18nRoutingBundle\Routing;

use Symfony\Component\Routing\Router as BaseRouter;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpFoundation\Session;
use Symfony\Component\Routing\Router as BaseRouter;

class Router extends BaseRouter
{
Expand Down

0 comments on commit dad4227

Please sign in to comment.