File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -395,8 +395,6 @@ public function update(Event $event = null, $operations = [])
395
395
396
396
public function install (Event $ event = null )
397
397
{
398
- $ this ->updateAutoloadFile ();
399
-
400
398
$ rootDir = $ this ->options ->get ('root-dir ' );
401
399
402
400
if (!file_exists ("$ rootDir/.env " ) && !file_exists ("$ rootDir/.env.local " ) && file_exists ("$ rootDir/.env.dist " ) && false === strpos (file_get_contents ("$ rootDir/.env.dist " ), '.env.local ' )) {
@@ -668,7 +666,7 @@ public function generateFlexId()
668
666
$ this ->updateComposerLock ();
669
667
}
670
668
671
- private function updateAutoloadFile ()
669
+ public function updateAutoloadFile ()
672
670
{
673
671
if (!$ platform = $ this ->lock ->get ('php ' )['version ' ] ?? null ) {
674
672
return ;
@@ -898,6 +896,7 @@ public static function getSubscribedEvents(): array
898
896
ScriptEvents::POST_INSTALL_CMD => 'install ' ,
899
897
ScriptEvents::PRE_UPDATE_CMD => 'configureInstaller ' ,
900
898
ScriptEvents::POST_UPDATE_CMD => 'update ' ,
899
+ ScriptEvents::POST_AUTOLOAD_DUMP => 'updateAutoloadFile ' ,
901
900
PluginEvents::PRE_FILE_DOWNLOAD => 'onFileDownload ' ,
902
901
'auto-scripts ' => 'executeAutoScripts ' ,
903
902
];
You can’t perform that action at this time.
0 commit comments