blob: 343526a55e65fa55f4d05e8a3214840c5f7c9a5a [file] [log] [blame]
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# Copyright 2012 Oracle and/or its affiliates. All rights reserved.
#
# Oracle and Java are registered trademarks of Oracle and/or its affiliates.
# Other names may be trademarks of their respective owners.
#
# The contents of this file are subject to the terms of either the GNU
# General Public License Version 2 only ("GPL") or the Common
# Development and Distribution License("CDDL") (collectively, the
# "License"). You may not use this file except in compliance with the
# License. You can obtain a copy of the License at
# http://www.netbeans.org/cddl-gplv2.html
# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
# specific language governing permissions and limitations under the
# License. When distributing the software, include this License Header
# Notice in each file and include the License file at
# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the GPL Version 2 section of the License file that
# accompanied this code. If applicable, add the following below the
# License Header, with the fields enclosed by brackets [] replaced by
# your own identifying information:
# "Portions Copyrighted [year] [name of copyright owner]"
#
# If you wish your version of this file to be governed by only the CDDL
# or only the GPL Version 2, indicate your decision by adding
# "[Contributor] elects to include this software in this distribution
# under the [CDDL or GPL Version 2] license." If you do not indicate a
# single choice of license, a recipient has the option to distribute
# your version of this file under either the CDDL, the GPL Version 2 or
# to extend the choice of license to its licensees as provided above.
# However, if you add GPL Version 2 code and therefore, elected the GPL
# Version 2 license, then the option applies only if the new code is
# made subject to such option by the copyright holder.
#
# Contributor(s):
#
# Portions Copyrighted 2012 Sun Microsystems, Inc.
\n# import routes from a controller class\npost:\n resource: "@SensioBlogBundle/Controller/PostController.php"\n type: annotation\n</code></pre>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5168\u4f53\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002</p><p style="font-weight: bold; font-size: 1.1em">\u4f8b</p><pre><code>\n# import routes from a controller directory\nblog:\n resource: "@SensioBlogBundle/Controller"\n type: annotation\n</code></pre>\n<p>\u4ed6\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u3064\u3044\u3066\u306f\u3001\u7279\u5b9a\u306e\u63a5\u982d\u8f9e\u4e0b\u3092\u30de\u30a6\u30f3\u30c8\u3067\u304d\u307e\u3059\u3002</p><p style="font-weight: bold; font-size: 1.1em">\u4f8b</p><pre><code>\npost:\n resource: "@SensioBlogBundle/Controller/PostController.php"\n prefix: /blog\n type: annotation\n</code></pre>\n<p style="font-weight: bold; font-size: 1.1em">\u30eb\u30fc\u30c8\u540d</p><p><code>@Route</code>\u6ce8\u91c8\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30eb\u30fc\u30c8\u306b\u306f\u3001\u30d0\u30f3\u30c9\u30eb\u540d\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u540d\u304a\u3088\u3073\u30a2\u30af\u30b7\u30e7\u30f3\u540d\u3067\u69cb\u6210\u3055\u308c\u305f\u30c7\u30d5\u30a9\u30eb\u30c8\u540d\u304c\u4ed8\u3051\u3089\u308c\u307e\u3059\u3002\u524d\u8ff0\u306e\u4f8b\u306e\u5834\u5408\u3001<code>sensio_blog_post_index</code>\u3067\u3059\u3002</p><p><code>name</code>\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u3066\u3001\u3053\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30fb\u30eb\u30fc\u30c8\u540d\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3067\u304d\u307e\u3059\u3002</p><p style="font-weight: bold; font-size: 1.1em">\u4f8b</p><pre><code>\n/**\n * @Route("/", name="blog_home")\n */\npublic function indexAction() {\n // ...\n}\n</code></pre>\n<p style="font-weight: bold; font-size: 1.1em">\u30eb\u30fc\u30c8\u63a5\u982d\u8f9e</p><p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fb\u30af\u30e9\u30b9\u306b\u304a\u3051\u308b<code>@Route</code>\u6ce8\u91c8\u3067\u306f\u3059\u3079\u3066\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30fb\u30eb\u30fc\u30c8\u306e\u63a5\u982d\u8f9e\u304c\u5b9a\u7fa9\u3055\u308c\u307e\u3059\u3002</p><p style="font-weight: bold; font-size: 1.1em">\u4f8b</p><pre><code>\n/**\n * @Route("/blog")\n */\nclass PostController extends Controller {\n /**\n * @Route("/{id}")\n */\n public function showAction($id) {\n }\n}\n</code></pre>\n<p>\u3053\u308c\u3067\u3001<code>show</code>\u30a2\u30af\u30b7\u30e7\u30f3\u306f<code>/blog/{id}</code>\u30d1\u30bf\u30fc\u30f3\u306b\u30de\u30c3\u30d7\u3055\u308c\u307e\u3059\u3002</p>
SymfonyExtraAnnotationsProvider.name=Symfony 2/3 Extra