public function frameworkCommand()
{
$content = <<<EOD
<?php
namespace ManaPHP\\Facade;
use ManaPHP\\Facade;
class Exception extends \\ManaPHP\\Exception{}
EOD;
foreach ($this->filesystem->glob('@manaphp/Facade/*.php') as $file) {
$facadeName = pathinfo($file, PATHINFO_FILENAME);
if (preg_match('#static\\s+(.*)\\s+getFacadeInstance*#', $this->filesystem->fileGet($file), $match) !== 1) {
continue;
}
$interfaceName = $match[1];
$r = $this->generate($facadeName, $interfaceName);
$this->console->writeLn(str_pad(' ' . $facadeName . ':', 16, ' ') . $interfaceName);
$content .= PHP_EOL . PHP_EOL . $r;
}
$this->filesystem->filePut('@manaphp/.ide.helper.facade.php', $content);
}