Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mautic.corals.io/vendor/oneup/uploader-bundle/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mautic.corals.io/vendor/oneup/uploader-bundle/src/UploadEvents.php
<?php

declare(strict_types=1);

namespace Oneup\UploaderBundle;

final class UploadEvents
{
    public const PRE_UPLOAD = 'oneup_uploader.pre_upload';
    public const POST_UPLOAD = 'oneup_uploader.post_upload';
    public const POST_PERSIST = 'oneup_uploader.post_persist';
    public const POST_CHUNK_UPLOAD = 'oneup_uploader.post_chunk_upload';
    public const VALIDATION = 'oneup_uploader.validation';

    public static function preUpload(string $mapping): string
    {
        return self::withMapping(self::PRE_UPLOAD, $mapping);
    }

    public static function postUpload(string $mapping): string
    {
        return self::withMapping(self::POST_UPLOAD, $mapping);
    }

    public static function postPersist(string $mapping): string
    {
        return self::withMapping(self::POST_PERSIST, $mapping);
    }

    public static function postChunkUpload(string $mapping): string
    {
        return self::withMapping(self::POST_CHUNK_UPLOAD, $mapping);
    }

    public static function validation(string $mapping): string
    {
        return self::withMapping(self::VALIDATION, $mapping);
    }

    private static function withMapping(string $event, string $mapping): string
    {
        return "{$event}.{$mapping}";
    }
}

Spamworldpro Mini