Bolt\Composer\ScriptHandler::getWebDir PHP Method

getWebDir() protected static method

If the web directory doesn't exist an error is emitted and null is returned.
protected static getWebDir ( Composer\Script\Event $event ) : string | null
$event Composer\Script\Event
return string | null
    protected static function getWebDir(Event $event)
    {
        $webDir = static::getDir($event, 'web', 'public');
        if (!is_dir($webDir)) {
            $error = '<error>The web directory (%s) was not found in %s, can not install assets.</error>';
            $event->getIO()->write(sprintf($error, $webDir, getcwd()));
            return null;
        }
        return $webDir;
    }