Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Routing] Enhance Route(Collection) docblocks #24351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions 28 src/Symfony/Component/Routing/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ class Route implements \Serializable
private $host = '';

/**
* @var array
* @var string[]
*/
private $schemes = array();

/**
* @var array
* @var string[]
*/
private $methods = array();

Expand Down Expand Up @@ -71,14 +71,14 @@ class Route implements \Serializable
*
* * compiler_class: A class name able to compile this route instance (RouteCompiler by default)
*
* @param string $path The path pattern to match
* @param array $defaults An array of default parameter values
* @param array $requirements An array of requirements for parameters (regexes)
* @param array $options An array of options
* @param string $host The host pattern to match
* @param string|array $schemes A required URI scheme or an array of restricted schemes
* @param string|array $methods A required HTTP method or an array of restricted methods
* @param string $condition A condition that should evaluate to true for the route to match
* @param string $path The path pattern to match
* @param array $defaults An array of default parameter values
* @param array $requirements An array of requirements for parameters (regexes)
* @param array $options An array of options
* @param string $host The host pattern to match
* @param string|string[] $schemes A required URI scheme or an array of restricted schemes
* @param string|string[] $methods A required HTTP method or an array of restricted methods
* @param string $condition A condition that should evaluate to true for the route to match
*/
public function __construct($path, array $defaults = array(), array $requirements = array(), array $options = array(), $host = '', $schemes = array(), $methods = array(), $condition = '')
{
Expand Down Expand Up @@ -230,7 +230,7 @@ public function setHost($pattern)
* Returns the lowercased schemes this route is restricted to.
* So an empty array means that any scheme is allowed.
*
* @return array The schemes
* @return string[] The schemes
*/
public function getSchemes()
{
Expand All @@ -243,7 +243,7 @@ public function getSchemes()
*
* This method implements a fluent interface.
*
* @param string|array $schemes The scheme or an array of schemes
* @param string|string[] $schemes The scheme or an array of schemes
*
* @return $this
*/
Expand Down Expand Up @@ -279,7 +279,7 @@ public function hasScheme($scheme)
* Returns the uppercased HTTP methods this route is restricted to.
* So an empty array means that any method is allowed.
*
* @return array The methods
* @return string[] The methods
*/
public function getMethods()
{
Expand All @@ -292,7 +292,7 @@ public function getMethods()
*
* This method implements a fluent interface.
*
* @param string|array $methods The method or an array of methods
* @param string|string[] $methods The method or an array of methods
*
* @return $this
*/
Expand Down
6 changes: 3 additions & 3 deletions 6 src/Symfony/Component/Routing/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function get($name)
/**
* Removes a route or an array of routes by name from the collection.
*
* @param string|array $name The route name or an array of route names
* @param string|string[] $name The route name or an array of route names
*/
public function remove($name)
{
Expand Down Expand Up @@ -234,7 +234,7 @@ public function addOptions(array $options)
/**
* Sets the schemes (e.g. 'https') all child routes are restricted to.
*
* @param string|array $schemes The scheme or an array of schemes
* @param string|string[] $schemes The scheme or an array of schemes
*/
public function setSchemes($schemes)
{
Expand All @@ -246,7 +246,7 @@ public function setSchemes($schemes)
/**
* Sets the HTTP methods (e.g. 'POST') all child routes are restricted to.
*
* @param string|array $methods The method or an array of methods
* @param string|string[] $methods The method or an array of methods
*/
public function setMethods($methods)
{
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.