10000 Fix "twig" -> "Twig" in codebase (6 files) · symfony/maker-bundle@b4e7dc9 · GitHub
[go: up one dir, main page]

Skip to content

Commit b4e7dc9

Browse files
committed
Fix "twig" -> "Twig" in codebase (6 files)
1 parent 8aeab06 commit b4e7dc9

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

config/help/MakeAuth.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ by asking questions.
33

44
It can provide an empty authenticator, or a full login form authentication process.
55
In both cases it also updates your <info>security.yaml</info>.
6-
For the login form, it also generates a controller and the twig template.
6+
For the login form, it also generates a controller and the Twig template.
77

88
<info>php %command.full_name%</info>

config/help/MakeTwigExtension.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The <info>%command.name%</info> command generates a new twig extension with its runtime class.
1+
The <info>%command.name%</info> command generates a new Twig extension with its runtime class.
22

33
<info>php %command.full_name% AppExtension</info>
44

config/help/security/MakeFormLogin.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The <info>%command.name%</info> command generates a controller and twig template
1+
The <info>%command.name%</info> command generates a controller and Twig template
22
to allow users to login using the form_login authenticator.
33

44
The controller name, and logout ability can be customized by answering the

src/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function generateClass(string $className, string $templateName, array $va
8585
* @param array $variables Array of variables to pass to the template
8686
* @param bool $isController Set to true if generating a Controller that needs
8787
* access to the TemplateComponentGenerator ("generator") in
88-
* the twig template. e.g. to create route attributes for a route method
88+
* the Twig template. e.g. to create route attributes for a route method
8989
*
9090
* @return string The path where the file will be created
9191
*

src/Maker/MakeController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class: $controllerClassName,
100100
]
101101
);
102102

103-
// Again if the class name is absolute, lets not make assumptions about where the twig template
103+
// Again if the class name is absolute, lets not make assumptions about where the Twig template
104104
// should live. E.g. templates/custom/location/for/my_controller.html.twig instead of
105105
// templates/my/controller.html.twig. We do however remove the root_namespace prefix in either case
106106
// so we don't end up with templates/app/my/controller.html.twig
@@ -109,7 +109,7 @@ class: $controllerClassName,
109109
$this->controllerClassData->getClassName(relative: true, withoutSuffix: true)
110110
;
111111

112-
// Convert the twig template name into a file path where it will be generated.
112+
// Convert the Twig template name into a file path where it will be generated.
113113
$this->twigTemplatePath = \sprintf('%s%s', Str::asFilePath($templateName), $this->isInvokable ? '.html.twig' : '/index.html.twig');
114114

115115
$this->interactSetGenerateTests($input, $io);

src/Maker/MakeTwigComponent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
106106
$path = 'config/packages/twig_component.yaml';
107107

108108
if (!$this->fileManager->fileExists($path)) {
109-
throw new RuntimeCommandException(message: 'Unable to find twig_component.yaml');
109+
throw new RuntimeCommandException(message: 'Unable to find config/packages/twig_component.yaml');
110110
}
111111

112112
try {
113113
$value = Yaml::parse($this->fileManager->getFileContents($path));
114114
$this->namespace = substr(array_key_first($value['twig_component']['defaults']), 4);
115115
} catch (\Throwable $throwable) {
116-
throw new RuntimeCommandException(message: 'Unable to parse twig_component.yaml', previous: $throwable);
116+
throw new RuntimeCommandException(message: 'Unable to parse config/packages/twig_component.yaml', previous: $throwable);
117117
}
118118
}
119119
}

0 commit comments

Comments
 (0)
0