8000 Added support for guards when advancing workflow from a command by GDIBass · Pull Request #23906 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Added support for guards when advancing workflow from a command #23906

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 12 commits into from
Oct 5, 2017
Prev Previous commit
Next Next commit
Code standards update
  • Loading branch information
GDIBass committed Aug 16, 2017
commit 324c208e129c6d5792486df71df09b8f6f4e8d08
4 changes: 2 additions & 2 deletions src/Symfony/Component/Workflow/EventListener/GuardListener.php 8000
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ private function getVariables(GuardEvent $event)
{
$token = $this->tokenStorage->getToken();

if($token == null) {
$token = new AnonymousToken('secret','anon',[]);
if ($token == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

null === $token

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

$token = new AnonymousToken('secret', 'anon', array());
$this->tokenStorage->setToken($token);
}

Expand Down
0