recursiveDelete example

'from'    => __DIR__ . '/../vendor/psr/log/Psr/Log/',
            'to'      => __DIR__ . '/ThirdParty/PSR/Log/',
        ],
    ];

    /** * This static method is called by Composer after every update event, * i.e., `composer install`, `composer update`, `composer remove`. */
    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']);
                
Home | Imprint | This part of the site doesn't use cookies.