Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Update basic_example.markdown
Browse files Browse the repository at this point in the history
the $action->getSubject->getName() is always empty because the $subject was created by action manager in step one and the its $name attribute had never been set.
After tracing source code in Spy\TimelineBundle\Driver\ODM\ActionManager, the effected attribute should be $identifier.
  • Loading branch information
wingzero0 committed Nov 26, 2014
1 parent e7bc9cb commit 9e8c17f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/doc/basic_example.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class MySpread implements SpreadInterface
public function supports(ActionInterface $action)
{
// here you define what actions you want to support, you have to return a boolean.
if ($action->getSubject()->getName() == "ChuckNorris") {
if ($action->getSubject()->getIdentifier() == "chucknorris") {
return true;
}

Expand Down

0 comments on commit 9e8c17f

Please sign in to comment.