container 'PSGI' => as { service 'App' => ( ... ); service 'Router' => ( class => 'Router::Simple', lifecycle => 'Singleton', block => sub { use_module('Senph::PSGI::Router'); return Senph::PSGI::Router->routes; } ); };