Skip to content

Commit be907bf

Browse files
committed
Fix typo
1 parent cced2c7 commit be907bf

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

commands/completion_posix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func autocompleteSymfonyConsoleWrapper(context *console.Context, words complete.
3131
// Composer does not support those options yet, so we only use them for Symfony Console
3232
args = append(args, "-a1", fmt.Sprintf("-s%s", console.GuessShell()))
3333

34-
if executor, err := php.SymonyConsoleExecutor(args); err == nil {
34+
if executor, err := php.SymfonyConsoleExecutor(args); err == nil {
3535
os.Exit(executor.Execute(false))
3636
}
3737

local/php/symfony.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ package php
33
import (
44
"os"
55

6-
"github.com/pkg/errors"
76
"path/filepath"
7+
8+
"github.com/pkg/errors"
89
)
910

10-
// ComposerExecutor returns an Executor prepared to run Symfony Console.
11+
// SymfonyConsoleExecutor returns an Executor prepared to run Symfony Console.
1112
// It returns an error if no console binary is found.
12-
func SymonyConsoleExecutor(args []string) (*Executor, error) {
13+
func SymfonyConsoleExecutor(args []string) (*Executor, error) {
1314
dir, err := os.Getwd()
1415
if err != nil {
1516
return nil, errors.WithStack(err)

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func main() {
7474
}
7575
// called via "symfony console"?
7676
if len(args) >= 2 && args[1] == "console" {
77-
if executor, err := php.SymonyConsoleExecutor(args[2:]); err == nil {
77+
if executor, err := php.SymfonyConsoleExecutor(args[2:]); err == nil {
7878
executor.Logger = terminal.Logger
7979
executor.ExtraEnv = getCliExtraEnv()
8080
os.Exit(executor.Execute(false))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy