protected function generateAPI()
    {
        $srcPath = Strata::getSRCPath();
        $vendorPath = Strata::getVendorPath();
        $tmpPath = Strata::getTmpPath();

        $this->output->writeLn("<info>Generating API</info>");
        $this->output->writeLn($this->tree(true) . "Scanning $srcPath");
        $this->nl();

        if (!file_exists($tmpPath . "phploc.xml")) {
            touch($tmpPath . "phploc.xml");
        }

        if (!file_exists($tmpPath . "phpcs.xml")) {
            touch($tmpPath . "phpcs.xml");
        }

        system(sprintf("%sbin/phploc  --log-xml %sphploc.xml test", $vendorPath, $tmpPath));
        system(sprintf("%sbin/phpcs src --standard=PSR2 --report-xml=%sphpcs.xml", $vendorPath, $tmpPath));
        system(sprintf("%sbin/phpdox", $vendorPath));
    }