File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ #ddev-generated
3+
4+ namespace DrupalCoreDev \Command ;
5+
6+ use Drupal \Core \Command \InstallCommand as CoreInstallCommand ;
7+ use Symfony \Component \Console \Input \InputInterface ;
8+ use Symfony \Component \Console \Output \OutputInterface ;
9+ use Symfony \Component \Filesystem \Filesystem ;
10+
11+ /**
12+ * Extends Drupal install site command.
13+ */
14+ class InstallCommand extends CoreInstallCommand {
15+
16+ /**
17+ * {@inheritdoc}
18+ */
19+ function execute (InputInterface $ input , OutputInterface $ output ): int {
20+ $ filesystem = new Filesystem ();
21+ $ settings = __DIR__ . '/../../../../sites/default/settings.php ' ;
22+ $ files = __DIR__ . '/../../../../sites/default/files ' ;
23+ $ filesystem ->chmod ($ files . '/../ ' , 0755 );
24+ $ filesystem ->chmod ($ settings , 0777 , 0000 , true );
25+ $ filesystem ->remove ($ settings );
26+ $ filesystem ->chmod ($ files , 0777 , 0000 , true );
27+ $ filesystem ->remove ($ files );
28+ return parent ::execute ($ input , $ output );
29+ }
30+ }
You can’t perform that action at this time.
0 commit comments