-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
$output throwing an error and not running command #15
Comments
rafatrace
changed the title
$output Error
$output trowing an error and not runnin command
Nov 20, 2015
rafatrace
changed the title
$output trowing an error and not runnin command
$output throwing an error and not runnin command
Nov 20, 2015
rafatrace
changed the title
$output throwing an error and not runnin command
$output throwing an error and not running command
Nov 20, 2015
Hi, I admit the example assumes a bit too much. In fact you need to import the use Symfony\Component\Console\Output\OutputInterface; |
You can also use the fully qualified name: $app->command('greet [name] [--yell]', function ($name, $yell, \Symfony\Component\Console\Output\OutputInterface $output) { |
I have fixed the example in the README with this commit: 2d74813 Thank you for taking the time to report it. |
Wow... fast reply. Have a nice day |
Thanks I removed the typo :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Silly looks amazing and faster and I want to use it instead of
symfony/console
but following your first page example I always get and error.When I use this:
PHP Error log returns the following error:
To make this work I had to remove
OutputInterface
or change it withSymfony\Component\Console\Output\ConsoleOutput
, is this de way to go or do you think I'm doing something wrong?Cheers
The text was updated successfully, but these errors were encountered: