Skip to content

Commit 4d2ab02

Browse files
Merge branch '4.1'
* 4.1: Alpha-ordering for "use" statements
2 parents 20d51f5 + ac5e502 commit 4d2ab02

30 files changed

+60
-60
lines changed

DependencyInjection/RoutingResolverPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Symfony\Component\Routing\DependencyInjection;
1313

14-
use Symfony\Component\DependencyInjection\Reference;
15-
use Symfony\Component\DependencyInjection\ContainerBuilder;
1614
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
1715
use Symfony\Component\DependencyInjection\Compiler\PriorityTaggedServiceTrait;
16+
use Symfony\Component\DependencyInjection\ContainerBuilder;
17+
use Symfony\Component\DependencyInjection\Reference;
1818

1919
/**
2020
* Adds tagged routing.loader services to routing.resolver service.

Generator/UrlGenerator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Component\Routing\Generator;
1313

14-
use Symfony\Component\Routing\RouteCollection;
15-
use Symfony\Component\Routing\RequestContext;
14+
use Psr\Log\LoggerInterface;
1615
use Symfony\Component\Routing\Exception\InvalidParameterException;
17-
use Symfony\Component\Routing\Exception\RouteNotFoundException;
1816
use Symfony\Component\Routing\Exception\MissingMandatoryParametersException;
19-
use Psr\Log\LoggerInterface;
17+
use Symfony\Component\Routing\Exception\RouteNotFoundException;
18+
use Symfony\Component\Routing\RequestContext;
19+
use Symfony\Component\Routing\RouteCollection;
2020

2121
/**
2222
* UrlGenerator can generate a URL or a path for any route in the RouteCollection

Loader/AnnotationClassLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
namespace Symfony\Component\Routing\Loader;
1313

1414
use Doctrine\Common\Annotations\Reader;
15+
use Symfony\Component\Config\Loader\LoaderInterface;
16+
use Symfony\Component\Config\Loader\LoaderResolverInterface;
1517
use Symfony\Component\Config\Resource\FileResource;
1618
use Symfony\Component\Routing\Route;
1719
use Symfony\Component\Routing\RouteCollection;
18-
use Symfony\Component\Config\Loader\LoaderInterface;
19-
use Symfony\Component\Config\Loader\LoaderResolverInterface;
2020

2121
/**
2222
* AnnotationClassLoader loads routing information from a PHP class and its methods.

Loader/AnnotationDirectoryLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\Routing\Loader;
1313

14-
use Symfony\Component\Routing\RouteCollection;
1514
use Symfony\Component\Config\Resource\DirectoryResource;
15+
use Symfony\Component\Routing\RouteCollection;
1616

1717
/**
1818
* AnnotationDirectoryLoader loads routing information from annotations set

Loader/AnnotationFileLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Symfony\Component\Routing\Loader;
1313

14-
use Symfony\Component\Routing\RouteCollection;
15-
use Symfony\Component\Config\Resource\FileResource;
16-
use Symfony\Component\Config\Loader\FileLoader;
1714
use Symfony\Component\Config\FileLocatorInterface;
15+
use Symfony\Component\Config\Loader\FileLoader;
16+
use Symfony\Component\Config\Resource\FileResource;
17+
use Symfony\Component\Routing\RouteCollection;
1818

1919
/**
2020
* AnnotationFileLoader loads routing information from annotations set

Loader/DirectoryLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace Symfony\Component\Routing\Loader;
1313

1414
use Symfony\Component\Config\Loader\FileLoader;
15-
use Symfony\Component\Routing\RouteCollection;
1615
use Symfony\Component\Config\Resource\DirectoryResource;
16+
use Symfony\Component\Routing\RouteCollection;
1717

1818
class DirectoryLoader extends FileLoader
1919
{

Loader/XmlFileLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
namespace Symfony\Component\Routing\Loader;
1313

14-
use Symfony\Component\Routing\RouteCollection;
15-
use Symfony\Component\Routing\Route;
16-
use Symfony\Component\Config\Resource\FileResource;
1714
use Symfony\Component\Config\Loader\FileLoader;
15+
use Symfony\Component\Config\Resource\FileResource;
1816
use Symfony\Component\Config\Util\XmlUtils;
17+
use Symfony\Component\Routing\Route;
18+
use Symfony\Component\Routing\RouteCollection;
1919

2020
/**
2121
* XmlFileLoader loads XML routing files.

Loader/YamlFileLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
namespace Symfony\Component\Routing\Loader;
1313

14-
use Symfony\Component\Routing\RouteCollection;
15-
use Symfony\Component\Routing\Route;
14+
use Symfony\Component\Config\Loader\FileLoader;
1615
use Symfony\Component\Config\Resource\FileResource;
16+
use Symfony\Component\Routing\Route;
17+
use Symfony\Component\Routing\RouteCollection;
1718
use Symfony\Component\Yaml\Exception\ParseException;
1819
use Symfony\Component\Yaml\Parser as YamlParser;
1920
use Symfony\Component\Yaml\Yaml;
20-
use Symfony\Component\Config\Loader\FileLoader;
2121

2222
/**
2323
* YamlFileLoader loads Yaml routing files.

Matcher/Dumper/PhpMatcherDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
namespace Symfony\Component\Routing\Matcher\Dumper;
1313

14+
use Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface;
15+
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
1416
use Symfony\Component\Routing\Matcher\RedirectableUrlMatcherInterface;
1517
use Symfony\Component\Routing\Route;
1618
use Symfony\Component\Routing\RouteCollection;
17-
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
18-
use Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface;
1919

2020
/**
2121
* PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes.

Matcher/RequestMatcherInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
namespace Symfony\Component\Routing\Matcher;
1313

1414
use Symfony\Component\HttpFoundation\Request;
15+
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
1516
use Symfony\Component\Routing\Exception\NoConfigurationException;
1617
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
17-
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
1818

1919
/**
2020
* RequestMatcherInterface is the interface that all request matcher classes must implement.

0 commit comments

Comments
 (0)