services: - App\Core\RouterFactory::createRouter security.passwords: Nette\Security\Passwords(::PASSWORD_BCRYPT, [cost: 12]) # Authenticator si vyžádá připojení k Master DB - App\Model\Security\Authenticator(@database.default.connection) # 1. Factory pro klientskou databázi kufrikConnectionFactory: factory: App\Model\Database\KufrikConnectionFactory(%clientDb.user%, %clientDb.password%) # 2. Samotný Explorer pro klientská data (vyvolá metodu createExplorer) kufrikExplorer: type: Nette\Database\Explorer factory: @kufrikConnectionFactory::createExplorer() search: - in: %appDir% classes: - *Factory - *Facade