Skip to content

Add Route::hasOption() and Route::hasRequirement() methods. #6098

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
Nov 24, 2012
Merged

Add Route::hasOption() and Route::hasRequirement() methods. #6098

merged 1 commit into from
Nov 24, 2012

Conversation

Crell
Copy link
Contributor

@Crell Crell commented Nov 23, 2012

It seems odd that there's a hasDefault() method but not for options and requirements. Drupal has logic that depends on the existence of a given requirement. So let's add that.

I think I got the coding standards right the first time for once... :-)

@@ -234,6 +234,18 @@ public function getOption($name)
}

/**
* Checks if a an option has been set
*
* @param string $name A variable name
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the option name, not the variable name

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, rebased, repushed.

fabpot added a commit that referenced this pull request Nov 24, 2012
This PR was merged into the master branch.

Commits
-------

b930066 Add Route::hasOption() and Route::hasRequirement() methods.

Discussion
----------

Add Route::hasOption() and Route::hasRequirement() methods.

It seems odd that there's a hasDefault() method but not for options and requirements.  Drupal has logic that depends on the existence of a given requirement.  So let's add that.

I think I got the coding standards right the first time for once... :-)
@fabpot fabpot merged commit b930066 into symfony:master Nov 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants