Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create console command on v1.9 #12

Open
pierlon opened this issue Dec 17, 2017 · 0 comments
Open

Unable to create console command on v1.9 #12

pierlon opened this issue Dec 17, 2017 · 0 comments

Comments

@pierlon
Copy link

pierlon commented Dec 17, 2017

Artisan command now fails to be created due to changes in GeneratorCommand.php.

Error:

PHP Fatal error:  Uncaught Error: Call to undefined function Illuminate\Console\config() in /test/vendor/illuminate/console/GeneratorCommand.php:172
Stack trace:
#0 /test/vendor/illuminate/console/GeneratorCommand.php(158): Illuminate\Console\GeneratorCommand->replaceNamespace('<?php\n\nnamespac...', 'Artisan\\Console...')
#1 /test/vendor/illuminate/console/GeneratorCommand.php(70): Illuminate\Console\GeneratorCommand->buildClass('Artisan\\Console...')
#2 [internal function]: Illuminate\Console\GeneratorCommand->handle()
#3 /test/vendor/illuminate/container/BoundMethod.php(29): call_user_func_array(Array, Array)
#4 /test/vendor/illuminate/container/BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#5 /test/vendor/illuminate/container/BoundMet in  #/test/vendor/illuminate/console/GeneratorCommand.php on line 172

I think the best way to fix this would be to override the function replaceNamespace or the class itself.

@pierlon pierlon changed the title Unable to create console command on v5.5 Unable to create console command on v1.9 Dec 17, 2017
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

No branches or pull requests

1 participant