- Add CloudronStack/output/CloudronPackages-Artifacts/tirreno/ directory and its contents - Includes package manifest, Dockerfile, source code, documentation, and build artifacts - Add tirreno-1761840148.tar.gz as a build artifact - Add tirreno-cloudron-package-1761841304.tar.gz as the Cloudron package - Include all necessary files for the tirreno Cloudron package This adds the complete tirreno Cloudron package artifacts to the repository.
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
declare(strict_types=1);
 | 
						|
 | 
						|
/**
 | 
						|
 * PSR-4 autoloader implementation for the DeviceDetector namespace.
 | 
						|
 * First we define the 'dd_autoload' function, and then we register
 | 
						|
 * it with 'spl_autoload_register' so that PHP knows to use it.
 | 
						|
 */
 | 
						|
 | 
						|
/**
 | 
						|
 * Automatically include the file that defines <code>class</code>.
 | 
						|
 *
 | 
						|
 * @param string $class
 | 
						|
 *     the name of the class to load
 | 
						|
 *
 | 
						|
 * @return void
 | 
						|
 */
 | 
						|
function dd_autoload(string $class): void
 | 
						|
{
 | 
						|
    if (false === strpos($class, 'DeviceDetector\\')) {
 | 
						|
        return;
 | 
						|
    }
 | 
						|
 | 
						|
    $namespaceMap = ['DeviceDetector\\' => __DIR__ . '/'];
 | 
						|
 | 
						|
    foreach ($namespaceMap as $prefix => $dir) {
 | 
						|
        /* First swap out the namespace prefix with a directory... */
 | 
						|
        $path = str_replace($prefix, $dir, $class);
 | 
						|
        /* replace the namespace separator with a directory separator... */
 | 
						|
        $path = str_replace('\\', '/', $path);
 | 
						|
        /* and finally, add the PHP file extension to the result. */
 | 
						|
        $path .= '.php';
 | 
						|
        /* $path should now contain the path to a PHP file defining $class */
 | 
						|
        require $path;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
spl_autoload_register('dd_autoload');
 |