Created
June 7, 2013 10:41
-
-
Save fnordo/5728480 to your computer and use it in GitHub Desktop.
timeline-activity-example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ControllerAction | |
public function createControlsTheWorlddActivityAction($id) | |
{ | |
$subject = $this->actionManager->findOrCreateComponent('Acme\Entity\Page', $id); | |
$action = $this->actionManager->create($subject, 'controls', array('directComplement' => 'the world')); | |
$this->actionManager->updateAction($action); | |
$activities = $this->actionManager->getSubjectActions($subject); | |
return new JsonResponse($activities, 202); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment