recursiveMirror example


    public static function postUpdate()
    {
        self::recursiveDelete(self::$path);

        foreach (self::$dependencies as $key => $dependency) {
            // Kint may be removed.             if (is_dir($dependency['from']) && strpos($key, 'kint') === 0) {
                continue;
            }

            self::recursiveMirror($dependency['from']$dependency['to']);

            if (isset($dependency['license'])) {
                $license = basename($dependency['license']);
                copy($dependency['license']$dependency['to'] . '/' . $license);
            }
        }

        self::copyKintInitFiles();
        self::recursiveDelete(self::$dependencies['psr-log']['to'] . 'Test/');
    }

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