Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Conversation

@javiereguiluz
Copy link
Member

If -> addArgument() provides a default value for the directory argument, then the !$input->getArgument('directory') instruction will never be true. The result is that you cannot execute the symfony demo command repeatedly as you could in the previous versions:

symfony_demo

@javiereguiluz javiereguiluz merged commit 182babb into symfony:master Jun 10, 2015
javiereguiluz added a commit that referenced this pull request Jun 10, 2015
…ereguiluz)

This PR was merged into the 1.0-dev branch.

Discussion
----------

Allow to execute the `symfony demo` command repeatedly

If `-> addArgument()` provides a default value for the `directory` argument, then the `!$input->getArgument('directory')` instruction will never be `true`. The result is that you cannot execute the `symfony demo` command repeatedly as you could in the previous versions:

![symfony_demo](https://cloud.githubusercontent.com/assets/73419/8076829/b62051c8-0f50-11e5-9d58-eb9ca33735d0.png)

Commits
-------

182babb Allow to execute the `symfony demo` command repeatedly
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant