Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration::getStateMachineGraph PHP Метод

getStateMachineGraph() публичный Метод

public getStateMachineGraph ( ) : string
Результат string
    public function getStateMachineGraph()
    {
        $options = $this->parameters->get('state_machine');
        return isset($options['graph']) ? $options['graph'] : null;
    }

Usage Example

Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function apply(RequestConfiguration $configuration, ResourceInterface $resource)
 {
     if (!$configuration->hasStateMachine()) {
         throw new \InvalidArgumentException('State machine must be configured to apply transition, check your routing.');
     }
     $this->stateMachineFactory->get($resource, $configuration->getStateMachineGraph())->apply($configuration->getStateMachineTransition());
 }
All Usage Examples Of Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration::getStateMachineGraph