Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moved to Response sub-namespace

* fixed code according to CS
  • Loading branch information...
commit d9b47a08dd723c57837e37e483ca18e32f131894 1 parent de113bb
@borisguery borisguery authored lsmith77 committed
View
3  EventListener/AllowedMethodsListener.php
@@ -1,5 +1,4 @@
<?php
-
/*
* This file is part of the FOSRestBundle package.
*
@@ -13,7 +12,7 @@
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
-use FOS\RestBundle\AllowedMethodsLoader\AllowedMethodsLoaderInterface;
+use FOS\RestBundle\Response\AllowedMethodsLoader\AllowedMethodsLoaderInterface;
/**
* Listener to append Allow-ed methods for a given route/resource
View
2  Resources/config/allowed_methods_listener.xml
@@ -7,7 +7,7 @@
<parameters>
<parameter key="fos_rest.allowed_methods_listener.class">FOS\RestBundle\EventListener\AllowedMethodsListener</parameter>
- <parameter key="fos_rest.allowed_methods_loader.class">FOS\RestBundle\AllowedMethodsLoader\AllowedMethodsRouterLoader</parameter>
+ <parameter key="fos_rest.allowed_methods_loader.class">FOS\RestBundle\Response\AllowedMethodsLoader\AllowedMethodsRouterLoader</parameter>
</parameters>
View
3  ...sLoader/AllowedMethodsLoaderInterface.php → ...sLoader/AllowedMethodsLoaderInterface.php
@@ -8,7 +8,7 @@
* file that was distributed with this source code.
*/
-namespace FOS\RestBundle\AllowedMethodsLoader;
+namespace FOS\RestBundle\Response\AllowedMethodsLoader;
/**
* AllowedMethodsLoaderInterface
@@ -25,7 +25,6 @@
* 'another_route' => array('DELETE', 'PUT'),
* );
*
- * @abstract
* @return array
*/
function getAllowedMethods();
View
9 ...hodsLoader/AllowedMethodsRouterLoader.php → ...hodsLoader/AllowedMethodsRouterLoader.php
@@ -8,11 +8,11 @@
* file that was distributed with this source code.
*/
-namespace FOS\RestBundle\AllowedMethodsLoader;
+namespace FOS\RestBundle\Response\AllowedMethodsLoader;
-use Symfony\Component\Routing\RouterInterface,
- Symfony\Component\Config\ConfigCache,
- Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
+use Symfony\Component\Routing\RouterInterface;
+use Symfony\Component\Config\ConfigCache;
+use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
/**
* AllowedMethodsRouterLoader implementation using RouterInterface to fetch
@@ -27,7 +27,6 @@ class AllowedMethodsRouterLoader implements AllowedMethodsLoaderInterface, Cache
*/
private $router;
-
/**
* @var ConfigCache
*/
Please sign in to comment.
Something went wrong with that request. Please try again.