This commit is contained in:
Guilhem N 2016-12-01 17:25:53 +01:00
parent ab3dec1125
commit e221047351
No known key found for this signature in database
GPG Key ID: 9E5D2DB67BF054DD
3 changed files with 2 additions and 4 deletions

View File

@ -27,14 +27,13 @@ final class Configuration implements ConfigurationInterface
->addDefaultsIfNotSet() ->addDefaultsIfNotSet()
->children() ->children()
->arrayNode('path_patterns') ->arrayNode('path_patterns')
->example(array('^/api', '^/api(?!/admin)')) ->example(['^/api', '^/api(?!/admin)'])
->prototype('scalar')->end() ->prototype('scalar')->end()
->end() ->end()
->end() ->end()
->end() ->end()
->end(); ->end();
return $treeBuilder; return $treeBuilder;
} }
} }

View File

@ -41,7 +41,7 @@ class RouteDescriberTest extends AbstractDescriberTest
new Container(), new Container(),
$this->routes, $this->routes,
$this->createMock(ControllerNameParser::class), $this->createMock(ControllerNameParser::class),
[ $this->routeDescriber ] [$this->routeDescriber]
); );
} }
} }

View File

@ -11,7 +11,6 @@
namespace EXSyst\Bundle\ApiDocBundle\Tests\Functional\Controller; namespace EXSyst\Bundle\ApiDocBundle\Tests\Functional\Controller;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
class UndocumentedController class UndocumentedController