You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.Add an instance of `CompletionCommand` to your application's `Application::getDefaultCommands()` method:
26
+
2.For standalone Symfony Console applications, add an instance of `CompletionCommand` to your application's `Application::getDefaultCommands()` method:
27
27
28
28
```php
29
29
protected function getDefaultCommands()
@@ -33,6 +33,18 @@ If you don't need any custom completion behaviour, you can simply add the comple
33
33
//...
34
34
}
35
35
```
36
+
37
+
For Symfony Framework applications, register the `CompletionCommand` as a service in `app/config/services.yml`:
3. Register completion for your application by running one of the following in a terminal, replacing `[program]` with the command you use to run your application (eg. 'composer'):
0 commit comments