From 57b59ae96f9e826dff0954f4152be887978b71c4 Mon Sep 17 00:00:00 2001 From: Lukas Kahwe Smith Date: Wed, 8 Jun 2011 16:06:41 +0200 Subject: [PATCH] updated license headers (fixes #65) --- Controller/Annotations/Delete.php | 16 ++++++-------- Controller/Annotations/Get.php | 16 ++++++-------- Controller/Annotations/Head.php | 16 ++++++-------- Controller/Annotations/NamePrefix.php | 20 ++++++++--------- Controller/Annotations/NoRoute.php | 14 +++++------- Controller/Annotations/Patch.php | 16 ++++++-------- Controller/Annotations/Post.php | 16 ++++++-------- Controller/Annotations/Prefix.php | 20 ++++++++--------- Controller/Annotations/Put.php | 16 ++++++-------- Controller/Annotations/Route.php | 18 +++++++-------- Controller/ExceptionController.php | 19 +++++++--------- DependencyInjection/Configuration.php | 20 ++++++++--------- DependencyInjection/FOSRestExtension.php | 20 ++++++++--------- EventListener/AnnotationTemplateListener.php | 20 ++++++++--------- FOSRestBundle.php | 18 +++++++-------- Response/Codes.php | 14 +++++------- Routing/Loader/RestRouteLoader.php | 20 ++++++++--------- Routing/Loader/RestRouteProcessor.php | 20 ++++++++--------- Routing/Loader/RestXmlCollectionLoader.php | 20 ++++++++--------- Routing/Loader/RestYamlCollectionLoader.php | 20 ++++++++--------- Routing/RestRouteCollection.php | 18 +++++++-------- Serializer/Encoder/HtmlEncoder.php | 20 ++++++++--------- .../TemplatingAwareEncoderInterface.php | 20 ++++++++--------- Serializer/Normalizer/FormErrorNormalizer.php | 19 ++++++++-------- Serializer/Normalizer/FormNormalizer.php | 19 ++++++++-------- Serializer/Normalizer/FormTypeNormalizer.php | 19 ++++++++-------- Serializer/Normalizer/FormViewNormalizer.php | 19 ++++++++-------- Serializer/Normalizer/NoopNormalizer.php | 20 ++++++++--------- Serializer/Normalizer/PassThruNormalizer.php | 20 ++++++++--------- ...ValidatorConstraintViolationNormalizer.php | 20 ++++++++--------- Serializer/Serializer.php | 20 ++++++++--------- .../FOSRestExtensionTest.php | 20 ++++++++--------- .../AnnotatedPrefixedController.php | 22 +++++++++---------- .../Controller/AnnotatedUsersController.php | 21 ++++++++---------- .../UserTopicCommentsController.php | 18 +++++++-------- .../Controller/UserTopicsController.php | 18 +++++++-------- Tests/Fixtures/Controller/UsersController.php | 18 +++++++-------- Tests/Pluralization/PluralizationTest.php | 18 +++++++-------- Tests/Routing/Loader/LoaderTest.php | 20 ++++++++--------- Tests/Routing/Loader/RestRouteLoaderTest.php | 20 ++++++++--------- .../Loader/RestXmlCollectionLoaderTest.php | 20 ++++++++--------- .../Loader/RestYamlCollectionLoaderTest.php | 20 ++++++++--------- Tests/Serializer/Encoder/HtmlEncoderTest.php | 22 +++++++++---------- Tests/View/ViewTest.php | 22 +++++++++---------- View/View.php | 20 ++++++++--------- 45 files changed, 382 insertions(+), 470 deletions(-) diff --git a/Controller/Annotations/Delete.php b/Controller/Annotations/Delete.php index 001ea6c03..0cceef583 100644 --- a/Controller/Annotations/Delete.php +++ b/Controller/Annotations/Delete.php @@ -1,18 +1,16 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Controller\Annotations; + /** * DELETE Route annotation class. */ @@ -22,4 +20,4 @@ public function getMethod() { return 'DELETE'; } -} \ No newline at end of file +} diff --git a/Controller/Annotations/Get.php b/Controller/Annotations/Get.php index baf76f50d..291418f53 100644 --- a/Controller/Annotations/Get.php +++ b/Controller/Annotations/Get.php @@ -1,18 +1,16 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Controller\Annotations; + /** * GET Route annotation class. */ @@ -22,4 +20,4 @@ public function getMethod() { return 'GET'; } -} \ No newline at end of file +} diff --git a/Controller/Annotations/Head.php b/Controller/Annotations/Head.php index 2046994e7..9b2c90b35 100644 --- a/Controller/Annotations/Head.php +++ b/Controller/Annotations/Head.php @@ -1,18 +1,16 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Controller\Annotations; + /** * HEAD Route annotation class. */ @@ -22,4 +20,4 @@ public function getMethod() { return 'HEAD'; } -} \ No newline at end of file +} diff --git a/Controller/Annotations/NamePrefix.php b/Controller/Annotations/NamePrefix.php index de6effa99..900c9bb32 100644 --- a/Controller/Annotations/NamePrefix.php +++ b/Controller/Annotations/NamePrefix.php @@ -1,23 +1,21 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Controller\Annotations; + +use Doctrine\Common\Annotations\Annotation; + /** * NamePrefix Route annotation class. */ class NamePrefix extends Annotation { -} \ No newline at end of file +} diff --git a/Controller/Annotations/NoRoute.php b/Controller/Annotations/NoRoute.php index e68919a80..f5899e94f 100644 --- a/Controller/Annotations/NoRoute.php +++ b/Controller/Annotations/NoRoute.php @@ -1,18 +1,16 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Controller\Annotations; + /** * No Route annotation class */ diff --git a/Controller/Annotations/Patch.php b/Controller/Annotations/Patch.php index ee7e81bb0..9da18c8b5 100644 --- a/Controller/Annotations/Patch.php +++ b/Controller/Annotations/Patch.php @@ -1,18 +1,16 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Controller\Annotations; + /** * PATCH Route annotation class. */ @@ -22,4 +20,4 @@ public function getMethod() { return 'PATCH'; } -} \ No newline at end of file +} diff --git a/Controller/Annotations/Post.php b/Controller/Annotations/Post.php index 70a8d98b0..ac75a39b5 100644 --- a/Controller/Annotations/Post.php +++ b/Controller/Annotations/Post.php @@ -1,18 +1,16 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Controller\Annotations; + /** * POST Route annotation class. */ @@ -22,4 +20,4 @@ public function getMethod() { return 'POST'; } -} \ No newline at end of file +} diff --git a/Controller/Annotations/Prefix.php b/Controller/Annotations/Prefix.php index 650646502..d3655f9e5 100644 --- a/Controller/Annotations/Prefix.php +++ b/Controller/Annotations/Prefix.php @@ -1,23 +1,21 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Controller\Annotations; + +use Doctrine\Common\Annotations\Annotation; + /** * Prefix Route annotation class. */ class Prefix extends Annotation { -} \ No newline at end of file +} diff --git a/Controller/Annotations/Put.php b/Controller/Annotations/Put.php index 47ffc07a9..4e78d770f 100644 --- a/Controller/Annotations/Put.php +++ b/Controller/Annotations/Put.php @@ -1,18 +1,16 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Controller\Annotations; + /** * PUT Route annotation class. */ @@ -22,4 +20,4 @@ public function getMethod() { return 'PUT'; } -} \ No newline at end of file +} diff --git a/Controller/Annotations/Route.php b/Controller/Annotations/Route.php index c474286c3..9464beb3c 100644 --- a/Controller/Annotations/Route.php +++ b/Controller/Annotations/Route.php @@ -1,20 +1,18 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Controller\Annotations; + +use Symfony\Component\Routing\Annotation\Route as BaseRoute; + /** * Route annotation class. */ diff --git a/Controller/ExceptionController.php b/Controller/ExceptionController.php index 9fc9a6861..457d79568 100644 --- a/Controller/ExceptionController.php +++ b/Controller/ExceptionController.php @@ -1,4 +1,12 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace FOS\RestBundle\Controller; @@ -12,17 +20,6 @@ use FOS\RestBundle\Response\Codes, FOS\RestBundle\Serializer\Encoder\TemplatingAwareEncoderInterface; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * Custom ExceptionController that uses the view layer and supports HTTP response status code mapping */ diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 11495ad8b..62f2c8361 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.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 FOS\RestBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder, @@ -7,17 +16,6 @@ use FOS\RestBundle\Response\Codes; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * This class contains the configuration information for the bundle * diff --git a/DependencyInjection/FOSRestExtension.php b/DependencyInjection/FOSRestExtension.php index db6995dac..fceda43e7 100644 --- a/DependencyInjection/FOSRestExtension.php +++ b/DependencyInjection/FOSRestExtension.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 FOS\RestBundle\DependencyInjection; use Symfony\Component\Config\Definition\Processor, @@ -10,17 +19,6 @@ Symfony\Component\DependencyInjection\ContainerBuilder, Symfony\Component\Config\FileLocator; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - class FOSRestExtension extends Extension { /** diff --git a/EventListener/AnnotationTemplateListener.php b/EventListener/AnnotationTemplateListener.php index 8c28c5e7b..6f43f5439 100644 --- a/EventListener/AnnotationTemplateListener.php +++ b/EventListener/AnnotationTemplateListener.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 FOS\RestBundle\EventListener; use Symfony\Component\HttpKernel\Event\FilterControllerEvent, @@ -11,17 +20,6 @@ use FOS\RestBundle\View\View; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * The AnnotationTemplateListener class handles the @extra:Template annotation. * diff --git a/FOSRestBundle.php b/FOSRestBundle.php index d151f3846..8dc92e46e 100644 --- a/FOSRestBundle.php +++ b/FOSRestBundle.php @@ -1,20 +1,18 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle; + +use Symfony\Component\HttpKernel\Bundle\Bundle; + class FOSRestBundle extends Bundle { } diff --git a/Response/Codes.php b/Response/Codes.php index a3ced8c8d..309671397 100644 --- a/Response/Codes.php +++ b/Response/Codes.php @@ -1,18 +1,16 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Response; + /** * List of HTTP response status codes. * diff --git a/Routing/Loader/RestRouteLoader.php b/Routing/Loader/RestRouteLoader.php index 29afa3c5d..6bdab7e9d 100644 --- a/Routing/Loader/RestRouteLoader.php +++ b/Routing/Loader/RestRouteLoader.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 FOS\RestBundle\Routing\Loader; use Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser, @@ -15,17 +24,6 @@ use Doctrine\Common\Annotations\Reader; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * RestRouteLoader REST-enabled controller router loader. * diff --git a/Routing/Loader/RestRouteProcessor.php b/Routing/Loader/RestRouteProcessor.php index 394306b79..baad380c8 100644 --- a/Routing/Loader/RestRouteProcessor.php +++ b/Routing/Loader/RestRouteProcessor.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 FOS\RestBundle\Routing\Loader; use Symfony\Component\Config\Loader\FileLoader, @@ -8,17 +17,6 @@ use FOS\RestBundle\Routing\Loader\RestRouteLoader; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * @author Donald Tyler */ diff --git a/Routing/Loader/RestXmlCollectionLoader.php b/Routing/Loader/RestXmlCollectionLoader.php index f29f84d8d..d98f81814 100644 --- a/Routing/Loader/RestXmlCollectionLoader.php +++ b/Routing/Loader/RestXmlCollectionLoader.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 FOS\RestBundle\Routing\Loader; use Symfony\Component\Config\FileLocatorInterface, @@ -12,17 +21,6 @@ use FOS\RestBundle\Routing\RestRouteCollection, FOS\RestBundle\Routing\Loader\RestRouteProcessor; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * RestXmlCollectionLoader XML file collections loader. * diff --git a/Routing/Loader/RestYamlCollectionLoader.php b/Routing/Loader/RestYamlCollectionLoader.php index 0dc7b7d43..272d9cb66 100644 --- a/Routing/Loader/RestYamlCollectionLoader.php +++ b/Routing/Loader/RestYamlCollectionLoader.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 FOS\RestBundle\Routing\Loader; use Symfony\Component\Config\FileLocatorInterface, @@ -13,17 +22,6 @@ use FOS\RestBundle\Routing\RestRouteCollection, FOS\RestBundle\Routing\Loader\RestRouteProcessor; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * RestYamlCollectionLoader YAML file collections loader. */ diff --git a/Routing/RestRouteCollection.php b/Routing/RestRouteCollection.php index 5a5695301..cb2560ff9 100644 --- a/Routing/RestRouteCollection.php +++ b/Routing/RestRouteCollection.php @@ -1,20 +1,18 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Routing; + +use Symfony\Component\Routing\RouteCollection; + /** * Restful route collection. * diff --git a/Serializer/Encoder/HtmlEncoder.php b/Serializer/Encoder/HtmlEncoder.php index 878a86225..2a26dbfa5 100644 --- a/Serializer/Encoder/HtmlEncoder.php +++ b/Serializer/Encoder/HtmlEncoder.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 FOS\RestBundle\Serializer\Encoder; use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface, @@ -7,17 +16,6 @@ Symfony\Component\Serializer\Encoder\SerializerAwareEncoder, Symfony\Component\Templating\TemplateReferenceInterface; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * Encodes HTML data * diff --git a/Serializer/Encoder/TemplatingAwareEncoderInterface.php b/Serializer/Encoder/TemplatingAwareEncoderInterface.php index f77de56cb..7f819c486 100644 --- a/Serializer/Encoder/TemplatingAwareEncoderInterface.php +++ b/Serializer/Encoder/TemplatingAwareEncoderInterface.php @@ -1,22 +1,20 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace FOS\RestBundle\Serializer\Encoder; use Symfony\Component\Serializer\Encoder\EncoderInterface, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface, Symfony\Component\Templating\TemplateReferenceInterface; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * Defines the interface of templating aware encoders * diff --git a/Serializer/Normalizer/FormErrorNormalizer.php b/Serializer/Normalizer/FormErrorNormalizer.php index 0d0c5f0b9..57f52106c 100644 --- a/Serializer/Normalizer/FormErrorNormalizer.php +++ b/Serializer/Normalizer/FormErrorNormalizer.php @@ -1,20 +1,19 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Serializer\Normalizer; + +use Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer, + Symfony\Component\Form\FormError; + /** * This Normalizer turns the FormError classes into strings * diff --git a/Serializer/Normalizer/FormNormalizer.php b/Serializer/Normalizer/FormNormalizer.php index 60428e2bd..9cd5caf2f 100644 --- a/Serializer/Normalizer/FormNormalizer.php +++ b/Serializer/Normalizer/FormNormalizer.php @@ -1,20 +1,19 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Serializer\Normalizer; + +use Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer, + Symfony\Component\Form\Form; + /** * This Normalizer is based on the GetSetNormalizer in core. * diff --git a/Serializer/Normalizer/FormTypeNormalizer.php b/Serializer/Normalizer/FormTypeNormalizer.php index 7eec0a432..39190721d 100644 --- a/Serializer/Normalizer/FormTypeNormalizer.php +++ b/Serializer/Normalizer/FormTypeNormalizer.php @@ -1,20 +1,19 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Serializer\Normalizer; + +use Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer, + Symfony\Component\Form\FormTypeInterface; + /** * This Normalizer gets some useful information from a FormTypeInterface instance * diff --git a/Serializer/Normalizer/FormViewNormalizer.php b/Serializer/Normalizer/FormViewNormalizer.php index 699190104..1ab792bce 100644 --- a/Serializer/Normalizer/FormViewNormalizer.php +++ b/Serializer/Normalizer/FormViewNormalizer.php @@ -1,20 +1,19 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Serializer\Normalizer; + +use Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer, + Symfony\Component\Form\FormView; + /** * This Normalizer gets the data from the FormView::all() method. * diff --git a/Serializer/Normalizer/NoopNormalizer.php b/Serializer/Normalizer/NoopNormalizer.php index 9f8a1791b..78903bc5c 100644 --- a/Serializer/Normalizer/NoopNormalizer.php +++ b/Serializer/Normalizer/NoopNormalizer.php @@ -1,21 +1,19 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Serializer\Normalizer; + +use Symfony\Component\Serializer\SerializerInterface, + Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer; + /** * This Normalizer basically just silences any Exceptions from missing normalizers * diff --git a/Serializer/Normalizer/PassThruNormalizer.php b/Serializer/Normalizer/PassThruNormalizer.php index 01158d6df..a8c34939f 100644 --- a/Serializer/Normalizer/PassThruNormalizer.php +++ b/Serializer/Normalizer/PassThruNormalizer.php @@ -1,21 +1,19 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Serializer\Normalizer; + +use Symfony\Component\Serializer\SerializerInterface, + Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer; + /** * This Normalizer basically just returns the data as it was given * diff --git a/Serializer/Normalizer/ValidatorConstraintViolationNormalizer.php b/Serializer/Normalizer/ValidatorConstraintViolationNormalizer.php index a95fdbfb4..dce6f93b8 100644 --- a/Serializer/Normalizer/ValidatorConstraintViolationNormalizer.php +++ b/Serializer/Normalizer/ValidatorConstraintViolationNormalizer.php @@ -1,22 +1,20 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace FOS\RestBundle\Serializer\Normalizer; use Symfony\Component\Serializer\SerializerInterface, Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer, Symfony\Component\Validator\ConstraintViolation; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * Converts a ConstraintViolation instance to an array containing the error * diff --git a/Serializer/Serializer.php b/Serializer/Serializer.php index 9d6ef14d4..6c64ab6bd 100644 --- a/Serializer/Serializer.php +++ b/Serializer/Serializer.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 FOS\RestBundle\Serializer; use Symfony\Component\Serializer\Serializer as BaseSerializer, @@ -7,17 +16,6 @@ Symfony\Component\DependencyInjection\ContainerInterface, Symfony\Component\DependencyInjection\ContainerAwareInterface; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * A service container enabled Serializer that can lazy load normalizers and encoders * diff --git a/Tests/DependencyInjection/FOSRestExtensionTest.php b/Tests/DependencyInjection/FOSRestExtensionTest.php index b07e032d9..e435666d6 100644 --- a/Tests/DependencyInjection/FOSRestExtensionTest.php +++ b/Tests/DependencyInjection/FOSRestExtensionTest.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 FOS\RestBundle\Tests\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder, @@ -8,17 +17,6 @@ use FOS\RestBundle\DependencyInjection\FOSRestExtension; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * FOSRestExtension test. * diff --git a/Tests/Fixtures/Controller/AnnotatedPrefixedController.php b/Tests/Fixtures/Controller/AnnotatedPrefixedController.php index f03fe1e8f..7bf19e3b3 100644 --- a/Tests/Fixtures/Controller/AnnotatedPrefixedController.php +++ b/Tests/Fixtures/Controller/AnnotatedPrefixedController.php @@ -1,22 +1,20 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace FOS\RestBundle\Tests\Fixtures\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use FOS\RestBundle\Controller\Annotations\Prefix; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * @author Donald Tyler * @Prefix("aprefix") @@ -25,4 +23,4 @@ class AnnotatedPrefixedController extends Controller { public function getSomethingAction() {} // [GET] /aprefix/something.{_format} -} \ No newline at end of file +} diff --git a/Tests/Fixtures/Controller/AnnotatedUsersController.php b/Tests/Fixtures/Controller/AnnotatedUsersController.php index 8ef2eaefb..98fbe17b6 100644 --- a/Tests/Fixtures/Controller/AnnotatedUsersController.php +++ b/Tests/Fixtures/Controller/AnnotatedUsersController.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 FOS\RestBundle\Tests\Fixtures\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; @@ -13,18 +22,6 @@ FOS\RestBundle\Controller\Annotations\Delete, FOS\RestBundle\Controller\Annotations\Head; - -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - class AnnotatedUsersController extends Controller { public function getUsersAction() diff --git a/Tests/Fixtures/Controller/UserTopicCommentsController.php b/Tests/Fixtures/Controller/UserTopicCommentsController.php index a19ee6e5d..7c31e6c14 100644 --- a/Tests/Fixtures/Controller/UserTopicCommentsController.php +++ b/Tests/Fixtures/Controller/UserTopicCommentsController.php @@ -1,20 +1,18 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Tests\Fixtures\Controller; + +use Symfony\Bundle\FrameworkBundle\Controller\Controller; + class UserTopicCommentsController extends Controller { public function getCommentsAction($slug, $title) diff --git a/Tests/Fixtures/Controller/UserTopicsController.php b/Tests/Fixtures/Controller/UserTopicsController.php index b40a7d946..8f2e1b1cc 100644 --- a/Tests/Fixtures/Controller/UserTopicsController.php +++ b/Tests/Fixtures/Controller/UserTopicsController.php @@ -1,20 +1,18 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Tests\Fixtures\Controller; + +use Symfony\Bundle\FrameworkBundle\Controller\Controller; + class UserTopicsController extends Controller { public function getTopicsAction($slug) diff --git a/Tests/Fixtures/Controller/UsersController.php b/Tests/Fixtures/Controller/UsersController.php index eafc1e816..eb4057ccc 100644 --- a/Tests/Fixtures/Controller/UsersController.php +++ b/Tests/Fixtures/Controller/UsersController.php @@ -1,20 +1,18 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Tests\Fixtures\Controller; + +use Symfony\Bundle\FrameworkBundle\Controller\Controller; + class UsersController extends Controller { public function getUsersAction() diff --git a/Tests/Pluralization/PluralizationTest.php b/Tests/Pluralization/PluralizationTest.php index d8ed90a7f..e94f15f35 100644 --- a/Tests/Pluralization/PluralizationTest.php +++ b/Tests/Pluralization/PluralizationTest.php @@ -1,20 +1,18 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Tests\Pluralization; + +use FOS\RestBundle\Pluralization\Pluralization; + /** * Pluralization test. * diff --git a/Tests/Routing/Loader/LoaderTest.php b/Tests/Routing/Loader/LoaderTest.php index 17526eb8e..0dd30aeb5 100644 --- a/Tests/Routing/Loader/LoaderTest.php +++ b/Tests/Routing/Loader/LoaderTest.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 FOS\RestBundle\Tests\Routing\Loader; use Doctrine\Common\Annotations\AnnotationReader; @@ -8,17 +17,6 @@ use FOS\RestBundle\Routing\Loader\RestRouteLoader; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * Base Loader testing class. * diff --git a/Tests/Routing/Loader/RestRouteLoaderTest.php b/Tests/Routing/Loader/RestRouteLoaderTest.php index 15db324c5..b44306d89 100644 --- a/Tests/Routing/Loader/RestRouteLoaderTest.php +++ b/Tests/Routing/Loader/RestRouteLoaderTest.php @@ -1,21 +1,19 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Tests\Routing\Loader; + +use FOS\RestBundle\Routing\Loader\RestRouteLoader, + FOS\RestBundle\Routing\RestRouteCollection; + /** * RestRouteLoader test. * diff --git a/Tests/Routing/Loader/RestXmlCollectionLoaderTest.php b/Tests/Routing/Loader/RestXmlCollectionLoaderTest.php index e47ca7b94..0d5d84337 100644 --- a/Tests/Routing/Loader/RestXmlCollectionLoaderTest.php +++ b/Tests/Routing/Loader/RestXmlCollectionLoaderTest.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 FOS\RestBundle\Tests\Routing\Loader; use Symfony\Component\Config\Loader\LoaderResolver, @@ -9,17 +18,6 @@ FOS\RestBundle\Routing\Loader\RestRouteProcessor, FOS\RestBundle\Routing\Loader\RestXmlCollectionLoader; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * RestXmlCollectionLoader test. * diff --git a/Tests/Routing/Loader/RestYamlCollectionLoaderTest.php b/Tests/Routing/Loader/RestYamlCollectionLoaderTest.php index 322a6ad37..2e0f47975 100644 --- a/Tests/Routing/Loader/RestYamlCollectionLoaderTest.php +++ b/Tests/Routing/Loader/RestYamlCollectionLoaderTest.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 FOS\RestBundle\Tests\Routing\Loader; use Symfony\Component\Config\Loader\LoaderResolver, @@ -9,17 +18,6 @@ FOS\RestBundle\Routing\Loader\RestRouteProcessor, FOS\RestBundle\Routing\Loader\RestYamlCollectionLoader; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * RestYamlCollectionLoader test. * diff --git a/Tests/Serializer/Encoder/HtmlEncoderTest.php b/Tests/Serializer/Encoder/HtmlEncoderTest.php index 41b90a40e..f50781528 100644 --- a/Tests/Serializer/Encoder/HtmlEncoderTest.php +++ b/Tests/Serializer/Encoder/HtmlEncoderTest.php @@ -1,21 +1,19 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Tests\Serialize\Encoder; + +use FOS\RestBundle\Serializer\Encoder\HtmlEncoder, + Symfony\Bundle\FrameworkBundle\Templating\TemplateReference; + /** * Html encoder test * @@ -40,4 +38,4 @@ public function testSetTemplateTemplateFormat() } } -} \ No newline at end of file +} diff --git a/Tests/View/ViewTest.php b/Tests/View/ViewTest.php index 646f539c4..717bbef4b 100644 --- a/Tests/View/ViewTest.php +++ b/Tests/View/ViewTest.php @@ -1,21 +1,19 @@ - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov + * (c) FriendsOfSymfony * - * 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 FOS\RestBundle\Tests\View; + +use FOS\RestBundle\View\View, + Symfony\Bundle\FrameworkBundle\Templating\TemplateReference; + /** * View test * @@ -40,4 +38,4 @@ public function testSetTemplateTemplateFormat() } } -} \ No newline at end of file +} diff --git a/View/View.php b/View/View.php index ae9cff535..8f1c20797 100644 --- a/View/View.php +++ b/View/View.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 FOS\RestBundle\View; use Symfony\Component\HttpFoundation\Response, @@ -14,17 +23,6 @@ use FOS\RestBundle\Response\Codes, FOS\RestBundle\Serializer\Encoder\TemplatingAwareEncoderInterface; -/* - * This file is part of the FOSRestBundle - * - * (c) Lukas Kahwe Smith - * (c) Konstantin Kudryashov - * (c) Bulat Shakirzyanov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * View may be used in controllers to build up a response in a format agnostic way * The View class takes care of encoding your data in json, xml, or renders a