class Falcon::Controller::Host

The configuration is provided by {Command::Host} and is typically loaded from a ‘falcon.rb` file. See {Configuration#load_file} for more details.
Hosts several {Services} based on the command configuration.
A generic controller for serving an application.

def create_container

e.g. `Async::Container::Forked`.
Create the controller as specified by the command.
def create_container
	@command.container_class.new
end

def initialize(command, **options)

@parameter command [Command::Host] The user-specified command-line options.
Initialize the virtual controller.
def initialize(command, **options)
	@command = command
	
	@configuration = command.configuration
	@services = Services.new(@configuration)
	
	super(**options)
end

def setup(container)

@parameter container [Async::Container::Generic]
Setup all specified services into the container.
def setup(container)
	@services.setup(container)
end

def start

Start all specified services.
def start
	@services.start
	
	super
end

def stop(*)

Stop all specified services.
def stop(*)
	@services.stop
	
	super
end