Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[5.1] Fix AppNameCommand when setting composer namespace#13208

Merged
taylorotwell merged 1 commit into
laravel:5.1from
leonardoalifraco:5.1
Apr 21, 2016
Merged

[5.1] Fix AppNameCommand when setting composer namespace#13208
taylorotwell merged 1 commit into
laravel:5.1from
leonardoalifraco:5.1

Conversation

@leonardoalifraco
Copy link
Copy Markdown
Contributor

Fix AppNameCommand when setting composer namespace for namespaces with more than one section.

If the namespace is changed using the artisan app:name command to Hello\World it changes fine since the original namespace has only a single section. Then if the namespace is changed again it was failing because it couldn't match the original namespace on the replacement sentence.

Escaping the slashes solves the problem.

@GrahamCampbell GrahamCampbell changed the title Fix AppNameCommand when setting composer namespace [5.1] Fix AppNameCommand when setting composer namespace Apr 19, 2016
@taylorotwell taylorotwell merged commit f4c56c8 into laravel:5.1 Apr 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants