src/Environment.php
public static function setupRobotLoader(?callable $callback = null): void
	{
		$loader = new RobotLoader();
		$loader->setTempDirectory(CACHE_DIR);

		if ($callback !== null) {
			$callback($loader);
		} else {
			$loader->addDirectory(ENGINE_DIR);
			$loader->addDirectory(APP_DIR);
			$loader->setAutoRefresh(true);
		}

		$loader->register();
	}
public static function setupRobotLoader(?callable $callback = null): void
	{
		$loader = new RobotLoader();
		$loader->setTempDirectory(CACHE_DIR);

		if ($callback !== null) {
			$callback($loader);
		} else {
			$loader->addDirectory(ENGINE_DIR);
			$loader->addDirectory(APP_DIR);
			$loader->setAutoRefresh(true);
		}

		$loader->register();
	}
public static function setupRobotLoader ( ? callable $ callback = null ) : void { $ loader = new RobotLoader ( ) ; $ loader -> setTempDirectory ( CACHE_DIR ) ; if ( $ callback !== null ) { $ callback ( $ loader ) ; } else { $ loader -> addDirectory ( ENGINE_DIR ) ; $ loader -> addDirectory ( APP_DIR ) ; $ loader -> setAutoRefresh ( true ) ; } $ loader -> register ( ) ; }
Configure robot loader
Configure robot loader