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

Added support for a specific directory in demo command #155

Merged
merged 1 commit into from
May 6, 2015

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented May 4, 2015

fixes #154

@lyrixx lyrixx force-pushed the demo-with-directory branch from c80ef4e to 5ad7096 Compare May 4, 2015 09:12
@@ -38,22 +38,29 @@ protected function initialize(InputInterface $input, OutputInterface $output)
{
parent::initialize($input, $output);

$this->projectDir = getcwd();
if ('symfony_demo' === $input->getArgument('directory')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would do this only if the argument has not been given at all, but not depending on the vaue if given.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed; fixed.

@lyrixx lyrixx force-pushed the demo-with-directory branch from 5ad7096 to 7a8569f Compare May 4, 2015 13:30
@lyrixx lyrixx force-pushed the demo-with-directory branch from 7a8569f to 8a9c43b Compare May 5, 2015 17:07
@javiereguiluz
Copy link
Member

Thanks @lyrixx.

@javiereguiluz javiereguiluz merged commit 8a9c43b into symfony:master May 6, 2015
javiereguiluz added a commit that referenced this pull request May 6, 2015
…lyrixx)

This PR was merged into the 1.0-dev branch.

Discussion
----------

Added support for a specific directory in demo command

fixes #154

Commits
-------

8a9c43b Added support for a specific directory in demo command
@@ -150,6 +152,19 @@ protected function download()
return $this;
}

protected function checkProjectName()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should remove the method from NewCommand too

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lyrixx lyrixx deleted the demo-with-directory branch May 6, 2015 08:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a directory argument to the demo command
4 participants