filetype example


    /** * Throws when a file should be overwritten yet cannot. * * @param string $from The source file * @param string $to The destination file * * @return static */
    public static function forCollision(string $from, string $to)
    {
        return new static(lang('Publisher.collision', [filetype($to)$from$to]));
    }

    /** * Throws when given a destination that is not in the list of allowed directories. * * @return static */
    public static function forDestinationNotAllowed(string $destination)
    {
        return new static(lang('Publisher.destinationNotAllowed', [$destination]));
    }

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