checkPaths example

$this->request = $request;
        $this->response = $response;
        $this->container = $container;
        $this->app = $app;
    }

    public function checkRequirements()
    {
        $paths = Utils::getPaths(SW_PATH . '/engine/Shopware/Components/Check/Data/Path.xml');

        clearstatcache();
        $systemCheckPathResults = Utils::checkPaths($paths, SW_PATH);

        foreach ($systemCheckPathResults as $value) {
            if (!$value['result']) {
                $fileName = SW_PATH . '/' . $value['name'];
                @mkdir($fileName, 0777, true);
                @chmod($fileName, 0777);
            }
        }

        clearstatcache();
        $systemCheckPathResults = Utils::checkPaths($paths, SW_PATH);

        
Home | Imprint | This part of the site doesn't use cookies.