moon0326 / artisan Goto Github PK
View Code? Open in Web Editor NEWStandalone Laravel Artisan Command
Standalone Laravel Artisan Command
Hello ,
Possibly to update this GIT artisan to use it with illuminate/container 5.3 ?
Best regards?
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.
Sometimes it would be beneficial to be able to register service providers that bind items into the container. We could do this simply via the artisan-config.php
file.
Hey I followed your usage guide but I've ran into this error and it's confused me a bit:
PHP Fatal error: Uncaught Error: Undefined constant 'Artisan\Console\Commands\Hello' in C:\xampp\AlbertoCM\artisan-config.php:5
Stack trace:
#0 C:\xampp\AlbertoCM\vendor\moon\artisan\src\Console\Kernel.php(28): require_once()
#1 C:\xampp\AlbertoCM\artisan(48): Moon\Artisan\Console\Kernel->__construct(Object(Moon\Artisan\Stub\Application), Object(Moon\Artisan\Stub\Dispatcher))
#2 {main}
thrown in C:\xampp\AlbertoCM\artisan-config.php on line 5
Fatal error: Uncaught Error: Undefined constant 'Artisan\Console\Commands\Hello' in C:\xampp\AlbertoCM\artisan-config.php:5
Stack trace:
#0 C:\xampp\AlbertoCM\vendor\moon\artisan\src\Console\Kernel.php(28): require_once()
#1 C:\xampp\AlbertoCM\artisan(48): Moon\Artisan\Console\Kernel->__construct(Object(Moon\Artisan\Stub\Application), Object(Moon\Artisan\Stub\Dispatcher))
#2 {main}
thrown in C:\xampp\AlbertoCM\artisan-config.php on line 5
My artisan-config.php is:
return [
'commands' => [
Artisan\Console\Commands\Hello
],
];
Any idea's on how to fix?
Running ./vendor/moon/artisan/artisan artisan:init
on v5.4 gives the following error:
PHP Fatal error: Class Moon\Artisan\Stub\Dispatcher contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Contracts\Events\Dispatcher::dispatch) in /test/vendor/moon/artisan/src/Stub/Dispatcher.php on line 8
PHP Stack trace:
PHP 1. {main}() /test/vendor/moon/artisan/artisan:0
PHP 2. spl_autoload_call() /test/vendor/moon/artisan/artisan:48
PHP 3. Composer\Autoload\ClassLoader->loadClass() /test/vendor/moon/artisan/artisan:48
PHP 4. Composer\Autoload\includeFile() /test/vendor/composer/ClassLoader.php:322
PHP 5. include() /test/vendor/composer/ClassLoader.php:444
The reason for the error is that the dispatch
method hasn't been implemented in Moon\Artisan\Stub\Dispatcher
.
Problem 1
- Installation request for moon/artisan ^1.9 -> satisfiable by moon/artisan[v1.9].
- Conclusion: remove symfony/console v2.8.31
- Conclusion: don't install symfony/console v2.8.31
- moon/artisan v1.9 requires illuminate/console 5.5.* -> satisfiable by illuminate/console[v5.5.0, v5.5.16, v5.5.17, v5.5.2].
- illuminate/console v5.5.0 requires symfony/console ~3.3 -> satisfiable by symfony/console[v3.3.0, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9].
- illuminate/console v5.5.16 requires symfony/console ~3.3 -> satisfiable by symfony/console[v3.3.0, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9].
- illuminate/console v5.5.17 requires symfony/console ~3.3 -> satisfiable by symfony/console[v3.3.0, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9].
- illuminate/console v5.5.2 requires symfony/console ~3.3 -> satisfiable by symfony/console[v3.3.0, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9].
- Can only install one of: symfony/console[v3.3.0, v2.8.31].
- Can only install one of: symfony/console[v3.3.1, v2.8.31].
- Can only install one of: symfony/console[v3.3.10, v2.8.31].
- Can only install one of: symfony/console[v3.3.11, v2.8.31].
- Can only install one of: symfony/console[v3.3.12, v2.8.31].
- Can only install one of: symfony/console[v3.3.13, v2.8.31].
- Can only install one of: symfony/console[v3.3.2, v2.8.31].
- Can only install one of: symfony/console[v3.3.3, v2.8.31].
- Can only install one of: symfony/console[v3.3.4, v2.8.31].
- Can only install one of: symfony/console[v3.3.5, v2.8.31].
- Can only install one of: symfony/console[v3.3.6, v2.8.31].
- Can only install one of: symfony/console[v3.3.7, v2.8.31].
- Can only install one of: symfony/console[v3.3.8, v2.8.31].
- Can only install one of: symfony/console[v3.3.9, v2.8.31].
- Installation request for symfony/console (locked at v2.8.31) -> satisfiable by symfony/console[v2.8.31].
thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.