Sylius: Lacking debug:winzou

Created on 19 Jun 2018  Â·  4Comments  Â·  Source: Sylius/Sylius

Sylius version affected: v1.2.0

Description

I docs

http://docs.sylius.com/en/latest/cookbook/shop/checkout.html

There is presented command:

php bin/console debug:winzou:state-machine

but applying this give error

  There are no commands defined in the "debug:winzou" namespace.  

  Did you mean one of these?                                      
      debug                                                       
      debug:payum 

Steps to reproduce

Install Sylius in Ubuntu using composer

https://sylius.com/download/

Use command

php bin/console debug:winzou:state-machine

https://sylius.com/download/

Possible Solution

Update docs or dependencies.

DX Good First Issue Potential Bug

Most helpful comment

Same here guys, using Symfony4. Found this thread on SO.

Solution:

    winzou\Bundle\StateMachineBundle\Command\winzouStateMachineDebugCommand:
        tags: ['console.command']

has to be added to app/config/services.yml and command will start working as it should. Cheers.

All 4 comments

I had discussion on slack

https://sylius-devs.slack.com

with @shql about this command. To make this command working I installed older version of Sylius by command:

composer create-project sylius/sylius-standard=1.1.5 project_name

In newest version it seems to be broken.

Hey, I reproduced this with a bare Symfony 4.1 install and just installing the winzou-bundle. The commands did not show up as available. Adding a custom command via console worked as expected. That's why I think it's an issue with the winzou state machine in connection with Symonfy 4.

Same here guys, using Symfony4. Found this thread on SO.

Solution:

    winzou\Bundle\StateMachineBundle\Command\winzouStateMachineDebugCommand:
        tags: ['console.command']

has to be added to app/config/services.yml and command will start working as it should. Cheers.

This is not a Sylius issue, could you open one for WinzouStateMachine (or open a PR there fixing it, there's one related here: https://github.com/winzou/StateMachineBundle/pull/43)?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Chrysweel picture Chrysweel  Â·  3Comments

eb22fbb4 picture eb22fbb4  Â·  3Comments

stefandoorn picture stefandoorn  Â·  3Comments

inssein picture inssein  Â·  3Comments

stefandoorn picture stefandoorn  Â·  3Comments