Bolt\Application::mount PHP Method

mount() public method

public mount ( $prefix, $controllers )
    public function mount($prefix, $controllers)
    {
        if (!$this->booted) {
            // Forward call to mount event if we can (which handles prioritization).
            $this->on(ControllerEvents::MOUNT, function (MountEvent $event) use($prefix, $controllers) {
                $event->mount($prefix, $controllers);
            });
        } else {
            // Already missed mounting event just append it to bottom of controller list
            parent::mount($prefix, $controllers);
        }
        return $this;
    }