Comment changer le chemin d'accès à l'application à la volée à partir d'une tâche personnalisée?
-
12-11-2019 - |
Question
Je crée un projet qui consiste à appeler le «projet de cuisson» (en utilisant DispatchShell
) de l'intérieur d'une tâche. Le problème est que, après l'avoir cuit, comment puis-je faire passer le chemin de l'application du chemin actuel vers celui nouvellement cuit afin que je puisse automatiquement exécuter d'autres tâches à l'intérieur? Le code est le suivant:
public function execute(){
// ...
$this->dispatchShell(/* Bake project script */);
/* Where I want to change app path */
$this->dispatchShell(/* creating a schema */);
}
J'ai essayé de courir $this->dispatchShell('-app appPath');
Mais cela ne fonctionne pas.
Pas de solution correcte
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow