public function onNewCodeEvent(\Composer\Script\Event $event)
{
if ($this->io->isDebug()) {
$this->io->write('start magento deploy via deployManager');
}
$this->deployManager->doDeploy();
$this->deployLibraries();
$this->saveVendorDirPath($event->getComposer());
$this->requestRegeneration();
$this->setFilePermissions();
}