generator-razor 14.0.39 → 14.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/app/index.js
CHANGED
|
@@ -606,21 +606,6 @@ export default class extends Generator {
|
|
|
606
606
|
)
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
/*
|
|
610
|
-
* Clear package / DI caches once more after removing the
|
|
611
|
-
* temporary extensions.
|
|
612
|
-
*/
|
|
613
|
-
this.log('→ Flushing TYPO3 caches...')
|
|
614
|
-
|
|
615
|
-
await fs.remove(
|
|
616
|
-
this.destinationPath('typo3temp/var/cache')
|
|
617
|
-
)
|
|
618
|
-
|
|
619
|
-
await this._runCommand(
|
|
620
|
-
typo3,
|
|
621
|
-
['cache:flush']
|
|
622
|
-
)
|
|
623
|
-
|
|
624
609
|
/*
|
|
625
610
|
* Hand over to the Razor installer.
|
|
626
611
|
*/
|
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
declare(strict_types=1);
|
|
4
4
|
|
|
5
|
+
/*
|
|
6
|
+
* This file is part of the TYPO3 CMS project.
|
|
7
|
+
*
|
|
8
|
+
* It is free software; you can redistribute it and/or modify it under
|
|
9
|
+
* the terms of the GNU General Public License, either version 2
|
|
10
|
+
* of the License, or any later version.
|
|
11
|
+
*
|
|
12
|
+
* For the full copyright and license information, please read the
|
|
13
|
+
* LICENSE.txt file that was distributed with this source code.
|
|
14
|
+
*
|
|
15
|
+
* The TYPO3 project - inspiring people to share!
|
|
16
|
+
*/
|
|
17
|
+
|
|
5
18
|
namespace RZ\Razorkickstart\Command;
|
|
6
19
|
|
|
7
20
|
use Symfony\Component\Console\Attribute\AsCommand;
|
|
@@ -9,6 +22,7 @@ use Symfony\Component\Console\Command\Command;
|
|
|
9
22
|
use Symfony\Component\Console\Input\InputInterface;
|
|
10
23
|
use Symfony\Component\Console\Output\OutputInterface;
|
|
11
24
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
|
25
|
+
use TYPO3\CMS\Core\Core\ClassLoadingInformation;
|
|
12
26
|
use TYPO3\CMS\Core\Package\PackageManager;
|
|
13
27
|
use TYPO3\CMS\Extensionmanager\Domain\Model\DownloadQueue;
|
|
14
28
|
use TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService;
|
|
@@ -36,11 +50,10 @@ final class InstallCommand extends Command
|
|
|
36
50
|
$io->writeln('Preparing Razor package states...');
|
|
37
51
|
|
|
38
52
|
/*
|
|
53
|
+
* Resolve the complete installation queue again.
|
|
54
|
+
*
|
|
39
55
|
* All TER dependencies have already been downloaded by
|
|
40
56
|
* razorkickstart:prepare.
|
|
41
|
-
*
|
|
42
|
-
* Resolve the complete installation queue again now that
|
|
43
|
-
* every extension is physically available.
|
|
44
57
|
*/
|
|
45
58
|
$this->extensionManagementService->markExtensionForInstallation(
|
|
46
59
|
'razorbootstrap'
|
|
@@ -84,17 +97,17 @@ final class InstallCommand extends Command
|
|
|
84
97
|
}
|
|
85
98
|
|
|
86
99
|
/*
|
|
87
|
-
*
|
|
100
|
+
* Only update PackageStates.php.
|
|
88
101
|
*
|
|
89
|
-
* Do
|
|
90
|
-
*
|
|
91
|
-
* activatePackage() only updates PackageStates.php and does
|
|
92
|
-
* not immediately rebuild TCA. The actual TYPO3 setup happens
|
|
93
|
-
* in a fresh process afterwards.
|
|
102
|
+
* Do not use PackageActivationService here because it would
|
|
103
|
+
* immediately rebuild DI/TCA in the current process.
|
|
94
104
|
*/
|
|
95
105
|
foreach (array_keys($installQueue) as $extensionKey) {
|
|
96
106
|
$io->writeln(
|
|
97
|
-
sprintf(
|
|
107
|
+
sprintf(
|
|
108
|
+
'Activating package %s...',
|
|
109
|
+
$extensionKey
|
|
110
|
+
)
|
|
98
111
|
);
|
|
99
112
|
|
|
100
113
|
$this->packageManager->activatePackage(
|
|
@@ -102,10 +115,24 @@ final class InstallCommand extends Command
|
|
|
102
115
|
);
|
|
103
116
|
}
|
|
104
117
|
|
|
118
|
+
/*
|
|
119
|
+
* Important for TYPO3 Classic mode:
|
|
120
|
+
*
|
|
121
|
+
* activatePackage() registers class-loading information only
|
|
122
|
+
* transiently for this process. Persist the complete class map
|
|
123
|
+
* and PSR-4 configuration so the next TYPO3 process knows all
|
|
124
|
+
* newly activated extensions.
|
|
125
|
+
*/
|
|
126
|
+
$io->writeln(
|
|
127
|
+
'Rebuilding TYPO3 class loading information...'
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
ClassLoadingInformation::dumpClassLoadingInformation();
|
|
131
|
+
|
|
105
132
|
$io->success(
|
|
106
133
|
'Razor package states successfully prepared.'
|
|
107
134
|
);
|
|
108
135
|
|
|
109
136
|
return Command::SUCCESS;
|
|
110
137
|
}
|
|
111
|
-
}
|
|
138
|
+
}
|