private function ensureAliasesSet()
 {
     if (!$this->isCommandExecuting('oro:entity-extend:update-config')) {
         ExtendClassLoadingUtils::setAliases($this->kernel->getCacheDir());
     }
 }
 private function ensureAliasesSet()
 {
     if (!CommandExecutor::isCurrentCommand('oro:entity-extend:update-config')) {
         ExtendClassLoadingUtils::setAliases($this->cacheDir);
     }
 }