|
13 | 13 | use Symfony\Component\Console\Input\InputInterface; |
14 | 14 | use Symfony\Component\Console\Output\OutputInterface; |
15 | 15 | use Throwable; |
| 16 | + |
16 | 17 | class ThemeCreateCommand extends Command |
17 | 18 | { |
18 | | - private DirectoryList $directoryList; |
19 | | - private ComponentRegistrar $componentRegistrar; |
20 | | - private Shell $shell; |
21 | | - |
22 | | - private string $themeSkeletonFolder; |
23 | | - |
24 | 19 | public function __construct( |
25 | | -<<<<<<< HEAD |
26 | | - DirectoryList $directoryList, |
27 | | - ComponentRegistrar $componentRegistrar, |
28 | | - Shell $shell, |
29 | | - string $themeSkeletonFolder = '', |
30 | | -======= |
31 | 20 | private DirectoryList $directoryList, |
32 | 21 | private ComponentRegistrar $componentRegistrar, |
33 | 22 | private Shell $shell, |
34 | 23 | private string $themeSkeletonFolder = '', |
35 | | ->>>>>>> 9ef8254c1b70701f2f1edcc4682f914e2f6cabe8 |
36 | 24 | string $name = null |
37 | 25 | ) { |
38 | 26 | parent::__construct($name); |
39 | | - $this->directoryList = $directoryList; |
40 | | - $this->componentRegistrar = $componentRegistrar; |
41 | | - $this->themeSkeletonFolder = $themeSkeletonFolder; |
42 | | - $this->shell = $shell; |
43 | 27 | } |
44 | 28 |
|
45 | 29 | /** |
@@ -73,11 +57,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int |
73 | 57 |
|
74 | 58 | $themeFolder = $this->getThemeFolder($themeName, $application); |
75 | 59 | $this->shell->execute('mkdir -p '.$themeFolder); |
76 | | -<<<<<<< HEAD |
77 | 60 |
|
78 | | -======= |
79 | | - |
80 | | ->>>>>>> 9ef8254c1b70701f2f1edcc4682f914e2f6cabe8 |
81 | 61 | $this->generateRegistrationFile($themeFolder, $application . '/' . $themeName); |
82 | 62 | $this->generateThemeXmlFile($themeFolder, $themeName, $parentThemeName); |
83 | 63 | return Command::SUCCESS; |
|
0 commit comments