Autarky\Application::config PHP 메소드

config() 공개 메소드

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
리턴 void
    public function config($configurator)
    {
        if ($this->booted) {
            $this->invokeConfigurator($configurator);
        } else {
            $this->configurators->push($configurator);
        }
    }