Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c88f1 commit 929e54fCopy full SHA for 929e54f
components/console.rst
@@ -68,6 +68,22 @@ add the following to it::
68
}
69
70
71
+You also need to create the file to run at the command line which creates
72
+an ``Application`` and adds commands to it:
73
+
74
+.. code-block::php
75
76
+ #!/usr/bin/env php
77
+ # app/console
78
+ <?php
79
80
+ use Acme\DemoBundle\Command\GreetCommand;
81
+ use Symfony\Component\Console\Application;
82
83
+ $application = new Application();
84
+ $application->add(new GreetCommand);
85
+ $application->run();
86
87
Test the new console command by running the following
88
89
.. code-block:: bash
0 commit comments