From 8bd3c0a961c9cce9065fe85367628086da50d5f6 Mon Sep 17 00:00:00 2001 From: Alessandro Lai Date: Tue, 13 Dec 2016 10:28:38 +0100 Subject: [PATCH] Remove deprecations from the example's config As you can see here: https://github.com/symfony/symfony/blob/master/UPGRADE-3.0.md#routing > Some route settings have been renamed: > * The pattern setting has been removed in favor of path I've removed the deprecations from the example that you give in this bundle. --- Resources/config/routing.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Resources/config/routing.yml b/Resources/config/routing.yml index 9d15cea..de8f36d 100644 --- a/Resources/config/routing.yml +++ b/Resources/config/routing.yml @@ -1,23 +1,23 @@ _pdf_index: - pattern: / + path: / defaults: { _controller: PsPdfBundle:Example:index } _pdf_using_facade_directly: - pattern: /manually + path: /manually defaults: { _controller: PsPdfBundle:Example:usingFacadeDirectly } _pdf_using_automatic_format_detection: - pattern: /auto/{name}.{_format} + path: /auto/{name}.{_format} defaults: { _controller: PsPdfBundle:Example:usingAutomaticFormatGuessing, _format: html } requirements: _format: html|pdf _pdf_examples: - pattern: /examples + path: /examples defaults: { _controller: PsPdfBundle:Example:examples } _pdf_markdown: - pattern: /markdown + path: /markdown defaults: { _controller: PsPdfBundle:Example:markdown, _format: pdf } requirements: - _format: pdf \ No newline at end of file + _format: pdf