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

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

public hasStateMachine ( ) : boolean
Результат boolean
    public function hasStateMachine()
    {
        return $this->parameters->has('state_machine');
    }

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::hasStateMachine