Heray-Was-Here
Server : Apache
System : Linux mail.lomejor.cr 6.8.0-1059-azure #65~22.04.1-Ubuntu SMP Thu May 28 16:59:19 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
Directory :  /var/www/dev/htdocs/includes/restler/framework/Luracast/Restler/Format/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/dev/htdocs/includes/restler/framework/Luracast/Restler/Format/DependentMultiFormat.php
<?php
namespace Luracast\Restler\Format;


use Luracast\Restler\RestException;

abstract class DependentMultiFormat extends MultiFormat
{
    /**
     * Get external class => packagist package name as an associative array
     *
     * @return array list of dependencies for the format
     *
     * @example return ['Illuminate\\View\\View' => 'illuminate/view:4.2.*']
     */
    abstract public function getDependencyMap();

    protected function checkDependency($class = null)
    {
        if (empty($class)) {
            $class = key($this->getDependencyMap());
        }
        if (!class_exists($class, true)) {
            $map = $this->getDependencyMap();
            $package = $map[$class];
            throw new RestException(
                500,
                get_called_class() . ' has external dependency. Please run `composer require ' .
                $package . '` from the project root. Read https://getcomposer.org for more info'
            );
        }
    }

    public function __construct()
    {
        $this->checkDependency();
    }

} 

Hry