public function getEnabledTransitions($subject, $name = null)
    {
        return $this->workflowRegistry->get($subject, $name)->getEnabledTransitions($subject);
    }
public function getEnabledTransitions($subject, $name = null)
    {
        return $this->workflowRegistry->get($subject, $name)->getEnabledTransitions($subject);
    }
public function getEnabledTransitions ( $ subject , $ name = null ) { return $ this -> workflowRegistry -> get ( $ subject , $ name ) -> getEnabledTransitions ( $ subject ) ; }
Returns all enabled transitions.

@param object $subject A subject
@param string $name    A workflow name

@return Transition[] All enabled transitions
Returns all enabled transitions .