Je crée un projet qui consiste à appeler 'bake project' (en utilisant DispatchShell
) depuis l'intérieur d'une tâche. Le problème est, après que je l'ai fait cuire, comment puis-je obtenir le chemin de l'application pour passer du chemin actuel à celui nouvellement cuit afin que je puisse automatiquement exécuter d'autres tâches à l'intérieur? Le code est le suivant:Comment changer le chemin de l'application à la volée d'une tâche personnalisée?
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 il ne fonctionne pas.