digipolisgent/robo-digipolis-laravel

View on GitHub
src/Robo/Plugin/Commands/DigipolisLaravelInstallCommand.php

Summary

Maintainability
A
1 hr
Test Coverage
<?php

namespace DigipolisGent\Robo\Laravel\Robo\Plugin\Commands;

use Consolidation\AnnotatedCommand\Events\CustomEventAwareInterface;
use Robo\Contract\ConfigAwareInterface;
use Robo\Tasks;

class DigipolisLaravelInstallCommand extends Tasks implements CustomEventAwareInterface, ConfigAwareInterface
{

    use \DigipolisGent\Robo\Helpers\Traits\EventDispatcher;
    use \Consolidation\AnnotatedCommand\Events\CustomEventAwareTrait;
    use \Consolidation\Config\ConfigAwareTrait;
    use \DigipolisGent\Robo\Task\General\Common\DigipolisPropertiesAware;
    use \DigipolisGent\Robo\Task\General\Tasks;

    /**
     * Install the Laravel site in the current folder.
     *
     * @command digipolis:install-laravel
     */
    public function digipolisInstallLaravel() {
        $this->readProperties();
        return $this->handleTaskEvent(
            'digipolis:install-laravel',
            [
                'webroot' => $this->getConfig()->get('digipolis.root.web') . '/..'
            ]
        );
    }
}