public function isDeployable(\SplFileInfo $archive) { // check if the .dodeploy flag file exists if (file_exists($archive->getPathname() . ExtractorInterface::FLAG_DODEPLOY)) { return true; } // by default it's NOT deployable return false; }