From 4f225c97c76472e7806d5eea5ee5b625ed689ade Mon Sep 17 00:00:00 2001 From: Dominique Bongiraud Date: Sat, 15 Jan 2011 14:29:43 +0100 Subject: [PATCH] normalized license messages in PHP files --- Annotation/Route.php | 4 ++-- CompiledRoute.php | 10 +++++----- Generator/Dumper/GeneratorDumper.php | 16 ++++++++-------- Generator/Dumper/GeneratorDumperInterface.php | 10 +++++----- Generator/Dumper/PhpGeneratorDumper.php | 14 +++++++------- Generator/UrlGenerator.php | 16 ++++++++-------- Generator/UrlGeneratorInterface.php | 10 +++++----- Loader/AnnotationClassLoader.php | 18 +++++++++--------- Loader/AnnotationDirectoryLoader.php | 14 +++++++------- Loader/AnnotationFileLoader.php | 16 ++++++++-------- Loader/AnnotationGlobLoader.php | 14 +++++++------- Loader/ClosureLoader.php | 14 +++++++------- Loader/DelegatingLoader.php | 14 +++++++------- Loader/FileLoader.php | 14 +++++++------- Loader/Loader.php | 10 +++++----- Loader/LoaderInterface.php | 14 +++++++------- Loader/LoaderResolver.php | 10 +++++----- Loader/LoaderResolverInterface.php | 10 +++++----- Loader/PhpFileLoader.php | 14 +++++++------- Loader/XmlFileLoader.php | 18 +++++++++--------- Loader/YamlFileLoader.php | 18 +++++++++--------- Matcher/ApacheUrlMatcher.php | 16 ++++++++-------- Matcher/Dumper/ApacheMatcherDumper.php | 14 +++++++------- Matcher/Dumper/MatcherDumper.php | 16 ++++++++-------- Matcher/Dumper/MatcherDumperInterface.php | 10 +++++----- Matcher/Dumper/PhpMatcherDumper.php | 14 +++++++------- Matcher/UrlMatcher.php | 16 ++++++++-------- Matcher/UrlMatcherInterface.php | 10 +++++----- Resource/FileResource.php | 10 +++++----- Resource/ResourceInterface.php | 10 +++++----- Route.php | 10 +++++----- RouteCollection.php | 14 +++++++------- RouteCompiler.php | 10 +++++----- RouteCompilerInterface.php | 10 +++++----- Router.php | 14 +++++++------- RouterInterface.php | 16 ++++++++-------- 36 files changed, 234 insertions(+), 234 deletions(-) diff --git a/Annotation/Route.php b/Annotation/Route.php index 9c233187..38700705 100644 --- a/Annotation/Route.php +++ b/Annotation/Route.php @@ -1,7 +1,5 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing; + /** * CompiledRoutes are returned by the RouteCompiler class. * diff --git a/Generator/Dumper/GeneratorDumper.php b/Generator/Dumper/GeneratorDumper.php index 31cb7be7..31217126 100644 --- a/Generator/Dumper/GeneratorDumper.php +++ b/Generator/Dumper/GeneratorDumper.php @@ -1,19 +1,19 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Generator\Dumper; + +use Symfony\Component\Routing\RouteCollection; +use Symfony\Component\Routing\Route; + /** * GeneratorDumper is the base class for all built-in generator dumpers. * diff --git a/Generator/Dumper/GeneratorDumperInterface.php b/Generator/Dumper/GeneratorDumperInterface.php index 67093436..bc8669d1 100644 --- a/Generator/Dumper/GeneratorDumperInterface.php +++ b/Generator/Dumper/GeneratorDumperInterface.php @@ -1,16 +1,16 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Generator\Dumper; + /** * GeneratorDumperInterface is the interface that all generator dumper classes must implement. * diff --git a/Generator/Dumper/PhpGeneratorDumper.php b/Generator/Dumper/PhpGeneratorDumper.php index 399f3e40..91c0dccb 100644 --- a/Generator/Dumper/PhpGeneratorDumper.php +++ b/Generator/Dumper/PhpGeneratorDumper.php @@ -1,18 +1,18 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Generator\Dumper; + +use Symfony\Component\Routing\Route; + /** * PhpGeneratorDumper creates a PHP class able to generate URLs for a given set of routes. * diff --git a/Generator/UrlGenerator.php b/Generator/UrlGenerator.php index efd0db59..b9f4ae13 100644 --- a/Generator/UrlGenerator.php +++ b/Generator/UrlGenerator.php @@ -1,19 +1,19 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Generator; + +use Symfony\Component\Routing\Route; +use Symfony\Component\Routing\RouteCollection; + /** * UrlGenerator generates URL based on a set of routes. * diff --git a/Generator/UrlGeneratorInterface.php b/Generator/UrlGeneratorInterface.php index 95eb4cf4..d7e4de0a 100644 --- a/Generator/UrlGeneratorInterface.php +++ b/Generator/UrlGeneratorInterface.php @@ -1,16 +1,16 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Generator; + /** * UrlGeneratorInterface is the interface that all URL generator classes must implements. * diff --git a/Loader/AnnotationClassLoader.php b/Loader/AnnotationClassLoader.php index e040802c..fc4b71eb 100644 --- a/Loader/AnnotationClassLoader.php +++ b/Loader/AnnotationClassLoader.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Symfony\Component\Routing\Loader; use Doctrine\Common\Annotations\AnnotationReader; @@ -9,15 +18,6 @@ use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; -/* - * This file is part of the Symfony framework. - * - * (c) Fabien Potencier - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * AnnotationClassLoader loads routing information from a PHP class and its methods. * diff --git a/Loader/AnnotationDirectoryLoader.php b/Loader/AnnotationDirectoryLoader.php index 7d419672..fd69c06e 100644 --- a/Loader/AnnotationDirectoryLoader.php +++ b/Loader/AnnotationDirectoryLoader.php @@ -1,18 +1,18 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Loader; + +use Symfony\Component\Routing\RouteCollection; + /** * AnnotationDirectoryLoader loads routing information from annotations set * on PHP classes and methods. diff --git a/Loader/AnnotationFileLoader.php b/Loader/AnnotationFileLoader.php index 23a1221f..b7c50ce2 100644 --- a/Loader/AnnotationFileLoader.php +++ b/Loader/AnnotationFileLoader.php @@ -1,19 +1,19 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Loader; + +use Symfony\Component\Routing\RouteCollection; +use Symfony\Component\Routing\Resource\FileResource; + /** * AnnotationFileLoader loads routing information from annotations set * on a PHP class and its methods. diff --git a/Loader/AnnotationGlobLoader.php b/Loader/AnnotationGlobLoader.php index c03c3b58..30ff8df3 100644 --- a/Loader/AnnotationGlobLoader.php +++ b/Loader/AnnotationGlobLoader.php @@ -1,18 +1,18 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Loader; + +use Symfony\Component\Routing\RouteCollection; + /** * AnnotationGlobLoader loads routing information from annotations set * on PHP classes and methods. diff --git a/Loader/ClosureLoader.php b/Loader/ClosureLoader.php index d023c33f..60d23711 100644 --- a/Loader/ClosureLoader.php +++ b/Loader/ClosureLoader.php @@ -1,21 +1,21 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Loader; + /** * ClosureLoader loads routes from a PHP closure. * + * The Closure must return a RouteCollection instance. + * * @author Fabien Potencier */ class ClosureLoader extends Loader diff --git a/Loader/DelegatingLoader.php b/Loader/DelegatingLoader.php index 21a280a5..52148836 100644 --- a/Loader/DelegatingLoader.php +++ b/Loader/DelegatingLoader.php @@ -1,18 +1,18 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Loader; + +use Symfony\Component\Routing\RouteCollection; + /** * DelegatingLoader delegates route loading to other loaders using a loader resolver. * diff --git a/Loader/FileLoader.php b/Loader/FileLoader.php index 1f26d1fc..22b3be1a 100644 --- a/Loader/FileLoader.php +++ b/Loader/FileLoader.php @@ -1,18 +1,18 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Loader; + +use Symfony\Component\Routing\RouteCollection; + /** * FileLoader is the abstract class used by all built-in loaders that are file based. * diff --git a/Loader/Loader.php b/Loader/Loader.php index 622e7541..a46116aa 100644 --- a/Loader/Loader.php +++ b/Loader/Loader.php @@ -1,16 +1,16 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Loader; + /** * Loader is the abstract class used by all built-in loaders. * diff --git a/Loader/LoaderInterface.php b/Loader/LoaderInterface.php index 7a3f6d7d..3adc7bab 100644 --- a/Loader/LoaderInterface.php +++ b/Loader/LoaderInterface.php @@ -1,18 +1,18 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Loader; + +use Symfony\Component\Routing\Loader\LoaderResolver; + /** * LoaderInterface is the interface that all loader classes must implement. * diff --git a/Loader/LoaderResolver.php b/Loader/LoaderResolver.php index c6a1c150..1411e988 100644 --- a/Loader/LoaderResolver.php +++ b/Loader/LoaderResolver.php @@ -1,16 +1,16 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Loader; + /** * LoaderResolver selects a loader for a given resource. * diff --git a/Loader/LoaderResolverInterface.php b/Loader/LoaderResolverInterface.php index 600e1c4a..dea15ca4 100644 --- a/Loader/LoaderResolverInterface.php +++ b/Loader/LoaderResolverInterface.php @@ -1,16 +1,16 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Loader; + /** * LoaderResolverInterface selects a loader for a given resource. * diff --git a/Loader/PhpFileLoader.php b/Loader/PhpFileLoader.php index e5c42a3d..d359af57 100644 --- a/Loader/PhpFileLoader.php +++ b/Loader/PhpFileLoader.php @@ -1,18 +1,18 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Loader; + +use Symfony\Component\Routing\Resource\FileResource; + /** * PhpFileLoader loads routes from a PHP file. * diff --git a/Loader/XmlFileLoader.php b/Loader/XmlFileLoader.php index 750651fc..1dab372c 100644 --- a/Loader/XmlFileLoader.php +++ b/Loader/XmlFileLoader.php @@ -1,20 +1,20 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Loader; + +use Symfony\Component\Routing\RouteCollection; +use Symfony\Component\Routing\Route; +use Symfony\Component\Routing\Resource\FileResource; + /** * XmlFileLoader loads XML routing files. * diff --git a/Loader/YamlFileLoader.php b/Loader/YamlFileLoader.php index aec43c46..cbb93d03 100644 --- a/Loader/YamlFileLoader.php +++ b/Loader/YamlFileLoader.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Symfony\Component\Routing\Loader; use Symfony\Component\Routing\RouteCollection; @@ -7,15 +16,6 @@ use Symfony\Component\Routing\Resource\FileResource; use Symfony\Component\Yaml\Yaml; -/* - * This file is part of the Symfony framework. - * - * (c) Fabien Potencier - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * YamlFileLoader loads Yaml routing files. * diff --git a/Matcher/ApacheUrlMatcher.php b/Matcher/ApacheUrlMatcher.php index 037d3aee..60e0f427 100644 --- a/Matcher/ApacheUrlMatcher.php +++ b/Matcher/ApacheUrlMatcher.php @@ -1,19 +1,19 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Matcher; + +use Symfony\Component\Routing\Route; +use Symfony\Component\Routing\RouteCollection; + /** * ApacheUrlMatcher matches URL based on Apache mod_rewrite matching (see ApacheMatcherDumper). * diff --git a/Matcher/Dumper/ApacheMatcherDumper.php b/Matcher/Dumper/ApacheMatcherDumper.php index 9ddd1ccd..6dac07ec 100644 --- a/Matcher/Dumper/ApacheMatcherDumper.php +++ b/Matcher/Dumper/ApacheMatcherDumper.php @@ -1,18 +1,18 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Matcher\Dumper; + +use Symfony\Component\Routing\Route; + /** * ApacheMatcherDumper dumps a matcher in the Apache .htaccess format. * diff --git a/Matcher/Dumper/MatcherDumper.php b/Matcher/Dumper/MatcherDumper.php index 182b9ab6..1275f69f 100644 --- a/Matcher/Dumper/MatcherDumper.php +++ b/Matcher/Dumper/MatcherDumper.php @@ -1,19 +1,19 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Matcher\Dumper; + +use Symfony\Component\Routing\RouteCollection; +use Symfony\Component\Routing\Route; + /** * MatcherDumper is the abstract class for all built-in matcher dumpers. * diff --git a/Matcher/Dumper/MatcherDumperInterface.php b/Matcher/Dumper/MatcherDumperInterface.php index 125dbb11..4ec5f801 100644 --- a/Matcher/Dumper/MatcherDumperInterface.php +++ b/Matcher/Dumper/MatcherDumperInterface.php @@ -1,16 +1,16 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Matcher\Dumper; + /** * MatcherDumperInterface is the interface that all matcher dumper classes must implement. * diff --git a/Matcher/Dumper/PhpMatcherDumper.php b/Matcher/Dumper/PhpMatcherDumper.php index 67e796ef..f2fa5a93 100644 --- a/Matcher/Dumper/PhpMatcherDumper.php +++ b/Matcher/Dumper/PhpMatcherDumper.php @@ -1,18 +1,18 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Matcher\Dumper; + +use Symfony\Component\Routing\Route; + /** * PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes. * diff --git a/Matcher/UrlMatcher.php b/Matcher/UrlMatcher.php index 586caff7..a9f45c48 100644 --- a/Matcher/UrlMatcher.php +++ b/Matcher/UrlMatcher.php @@ -1,19 +1,19 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Matcher; + +use Symfony\Component\Routing\Route; +use Symfony\Component\Routing\RouteCollection; + /** * UrlMatcher matches URL based on a set of routes. * diff --git a/Matcher/UrlMatcherInterface.php b/Matcher/UrlMatcherInterface.php index dcbdcac6..670c3379 100644 --- a/Matcher/UrlMatcherInterface.php +++ b/Matcher/UrlMatcherInterface.php @@ -1,16 +1,16 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Matcher; + /** * UrlMatcherInterface is the interface that all URL matcher classes must implements. * diff --git a/Resource/FileResource.php b/Resource/FileResource.php index 4959d375..1f57d8f1 100644 --- a/Resource/FileResource.php +++ b/Resource/FileResource.php @@ -1,16 +1,16 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Resource; + /** * FileResource represents a resource stored on the filesystem. * diff --git a/Resource/ResourceInterface.php b/Resource/ResourceInterface.php index fedf508d..d55ce4d8 100644 --- a/Resource/ResourceInterface.php +++ b/Resource/ResourceInterface.php @@ -1,16 +1,16 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing\Resource; + /** * ResourceInterface is the interface that must be implemented by all Resource classes. * diff --git a/Route.php b/Route.php index 56e65180..f7387b5f 100644 --- a/Route.php +++ b/Route.php @@ -1,16 +1,16 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing; + /** * A Route describes a route and its parameters. * diff --git a/RouteCollection.php b/RouteCollection.php index 147e7e2f..98d57938 100644 --- a/RouteCollection.php +++ b/RouteCollection.php @@ -1,18 +1,18 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing; + +use Symfony\Component\Routing\Resource\ResourceInterface; + /** * A RouteCollection represents a set of Route instances. * diff --git a/RouteCompiler.php b/RouteCompiler.php index f75a8439..32d51181 100644 --- a/RouteCompiler.php +++ b/RouteCompiler.php @@ -1,16 +1,16 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing; + /** * RouteCompiler compiles Route instances to CompiledRoute instances. * diff --git a/RouteCompilerInterface.php b/RouteCompilerInterface.php index 94263308..87abafd9 100644 --- a/RouteCompilerInterface.php +++ b/RouteCompilerInterface.php @@ -1,16 +1,16 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing; + /** * RouteCompilerInterface is the interface that all RouteCompiler classes must implements. * diff --git a/Router.php b/Router.php index 3483bcbf..955f2ff9 100644 --- a/Router.php +++ b/Router.php @@ -1,18 +1,18 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing; + +use Symfony\Component\Routing\Loader\LoaderInterface; + /** * The Router class is an example of the integration of all pieces of the * routing system for easier use. diff --git a/RouterInterface.php b/RouterInterface.php index 28e02d44..12aab43a 100644 --- a/RouterInterface.php +++ b/RouterInterface.php @@ -1,19 +1,19 @@ * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. */ +namespace Symfony\Component\Routing; + +use Symfony\Component\Routing\Generator\UrlGeneratorInterface; +use Symfony\Component\Routing\Matcher\UrlMatcherInterface; + /** * RouterInterface is the interface that all Router classes must implements. *