-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
60 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
namespace Symfony\Cmf\Bundle\CreateBundle\Workflow; | ||
|
||
|
||
use Doctrine\Common\Persistence\ManagerRegistry; | ||
use Doctrine\Common\Persistence\ObjectManager; | ||
use Midgard\CreatePHP\WorkflowInterface; | ||
|
@@ -12,12 +11,13 @@ | |
* | ||
* Implement direct deletion of an object. | ||
* | ||
* @package Symfony\Cmf\Bundle\CreateBundle\Workflow | ||
* @author Uwe Jäger <[email protected]> | ||
*/ | ||
class DoctrinePhpcrDeleteWorkflow implements WorkflowInterface | ||
{ | ||
/** @var ObjectManager */ | ||
/** | ||
* @var ObjectManager | ||
*/ | ||
protected $om; | ||
|
||
public function __construct(ManagerRegistry $registry, $name = null) | ||
|
@@ -32,7 +32,9 @@ public function __construct(ManagerRegistry $registry, $name = null) | |
* @see http://createjs.org/guide/#workflows | ||
* | ||
* @param mixed $object | ||
* @return array|null array to return for this workflow, or null if workflow is not allowed | ||
* | ||
* @return array|null Array to return for this workflow, or null if | ||
* workflow is not allowed. | ||
*/ | ||
public function getToolbarConfig($object) | ||
{ | ||
|
@@ -50,7 +52,7 @@ public function getToolbarConfig($object) | |
* Execute this workflow | ||
* | ||
* The object will only be set if there is a subject parameter in $_GET | ||
* that can be found by the mapper tied to the RestService | ||
* that can be found by the mapper tied to the RestService. | ||
* | ||
* @param mixed $object | ||
* | ||
|
@@ -62,4 +64,4 @@ public function run($object) | |
$this->om->flush(); | ||
} | ||
|
||
} | ||
} |