Autarky\Application::config PHP Method

config() public method

Push a configurator on top of the stack. The configurators will be executed when the application is booted. If the application is already booted, the configurator will be executed at once.
public config ( callable | string | autarky\ConfiguratorInterface $configurator ) : void
$configurator callable | string | autarky\ConfiguratorInterface
return void
    public function config($configurator)
    {
        if ($this->booted) {
            $this->invokeConfigurator($configurator);
        } else {
            $this->configurators->push($configurator);
        }
    }