| Server IP : / Your IP : 216.73.216.44 Web Server : nginx/1.31.3 System : Linux dcde39c899c5 6.12.95+deb13-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.95-1 (2026-07-04) x86_64 User : www-data ( 1000) PHP Version : 8.4.15 Disable Function : phpinfo MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/themes/yuki/lotta-framework/src/ |
Upload File : |
<?php
namespace LottaFramework;
use LottaFramework\Facades\Facade;
class Bootstrap {
/**
* All default singletons
*
* @var array
*/
protected static $singletons = [
\LottaFramework\Customizer\Customizer::class,
\LottaFramework\Css::class,
\LottaFramework\Query::class,
\LottaFramework\Extensions\Breadcrumbs::class,
];
/**
* All default alias
*
* @var array
*/
protected static $aliases = [
'CZ' => \LottaFramework\Customizer\Customizer::class,
'css' => \LottaFramework\Css::class,
'query' => \LottaFramework\Query::class,
'breadcrumbs' => \LottaFramework\Extensions\Breadcrumbs::class,
];
/**
* @param string $id
* @param string $uri
*/
public static function run( string $id, string $uri ) {
$app = new Application( $id, $uri );
$app->instance( Application::class, $app );
Facade::setFacadeApplication( $app );
foreach ( self::$singletons as $singleton ) {
$app->singleton( $singleton );
}
foreach ( self::$aliases as $alias => $abs ) {
$app->alias( $abs, $alias );
}
}
}