8000 [2.2] [FrameworkBundle][Translation] Added logging capability to translator by meandmymonkey · Pull Request #5537 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[2.2] [FrameworkBundle][Translation] Added logging capability to translator #5537

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

Closed
wants to merge 22 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
5a53821
[OptionsResolver] fix removing normalizers
Tobion Jul 29, 2012
e2a50ef
[OptionsResolver] fix normalizer without corresponding option
Tobion Jul 30, 2012
5f62bad
[Translation] added validateCatalogueForId() to allow for handling of…
Apr 11, 2012
31c42bc
[FrameworkBundle] added logging capabilities to translator
Apr 11, 2012
efb36bb
[FrameworkBundle][Translation] renamed catalog select method
Sep 18, 2012
5e21921
[FrameworkBundle][Translation] clarified method naming
Sep 18, 2012
d1b5093
Try to make sure cookies get deleted from the TokenProvider when no l…
Nov 18, 2012
b930066
Add Route::hasOption() and Route::hasRequirement() methods.
Crell Nov 23, 2012
64b6980
merged branch Crell/route-requirements (PR #6098)
fabpot Nov 24, 2012
acec659
merged branch Tobion/patch-1 (PR #5104)
fabpot Nov 24, 2012
efe42cb
[Validator] Refactored the GraphWalker into an implementation of the …
webmozart Nov 22, 2012
1f752e8
[DoctrineBridge] Adapted UniqueValidator to latest changes in the Val…
webmozart Nov 22, 2012
1858b96
[Form] Adapted FormValidator to latest changes in the Validator
webmozart Nov 22, 2012
c8ebc1e
merged branch sli-systems/dc-1 (PR #6080)
fabpot Nov 24, 2012
d5ff238
merged branch TerjeBr/persistent-token-provider (PR #6055)
fabpot Nov 24, 2012
ee90986
merged branch bschussek/drupal-validator (PR #6096)
fabpot Nov 24, 2012
6966c7d
[Translation] added validateCatalogueForId() to allow for handling of…
Apr 11, 2012
a1716d0
[FrameworkBundle] added logging capabilities to translator
Apr 11, 2012
34309fd
[FrameworkBundle][Translation] renamed catalog select method
Sep 18, 2012
3716574
[FrameworkBundle][Translation] clarified method naming
Sep 18, 2012
0cf8d7d
Merge branch 'translator-log-catalog-misses' of github.com:meandmymon…
Nov 24, 2012
cc5e197
fixed merge conflict introduced by last commit
Nov 24, 2012
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
24 changes: 24 additions & 0 deletions src/Symfony/Component/Routing/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,18 @@ public function getOption($name)
return isset($this->options[$name]) ? $this->options[$name] : null;
}

/**
* Checks if a an option has been set
*
* @param string $name An option name
*
* @return Boolean true if the option is set, false otherwise
*/
public function hasOption($name)
{
return array_key_exists($name, $this->options);
}

/**
* Returns the defaults.
*
Expand Down Expand Up @@ -377,6 +389,18 @@ public function getRequirement($key)
return isset($this->requirements[$key]) ? $this->requirements[$key] : null;
}

/**
* Checks if a requirement is set for the given key.
*
* @param string $name A variable name
*
* @return Boolean true if a requirement is specified, false otherwise
*/
public function hasRequirement($key)
{
return array_key_exists($key, $this->requirements);
}

/**
* Sets a requirement for the given key.
*
Expand Down
0