File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 12
12
*/
13
13
final class KernelFactory
14
14
{
15
- public static function createKernel (? string $ parseOnly ): Kernel
15
+ public static function createKernel (string $ parseOnlyPath = null ): Kernel
16
16
{
17
17
$ configuration = new Configuration ();
18
18
$ configuration ->setCustomTemplateDirs ([__DIR__ .'/Templates ' ]);
@@ -24,16 +24,16 @@ public static function createKernel(?string $parseOnly): Kernel
24
24
)
25
25
);
26
26
27
- if ($ parseOnly ) {
27
+ if ($ parseOnlyPath ) {
28
28
$ configuration ->setBaseUrl (
29
29
sprintf (
30
30
SymfonyDocConfiguration::getSymfonyDocUrl (),
31
31
SymfonyDocConfiguration::getVersion ()
32
32
)
33
33
);
34
34
$ configuration ->setBaseUrlEnabledCallable (
35
- static function (string $ path ) use ($ parseOnly ) : bool {
36
- return strpos ($ path , $ parseOnly ) !== 0 ;
35
+ static function (string $ path ) use ($ parseOnlyPath ) : bool {
36
+ return strpos ($ path , $ parseOnlyPath ) !== 0 ;
37
37
}
38
38
);
39
39
}
You can’t perform that action at this time.
0 commit comments