39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
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)
|
|
|
|
# Firmy / přístupy (LOGIN) ve sdílené tenant DB
|
|
- App\Model\Facade\DatabazeFacade(
|
|
@database.default.connection,
|
|
%sdfStorageDir%,
|
|
@security.passwords,
|
|
@kufrikConnectionFactory,
|
|
%tenantDb.server%,
|
|
%tenantDb.database%
|
|
)
|
|
|
|
- App\Model\Sdf\SdfCompactExporter(%sdfExportScript%, %sdfPassword%)
|
|
- App\Model\Sdf\SdfKufrikImporter
|
|
- App\Model\Faktura\PdfSestava(tempDir: %tempDir%)
|
|
- App\Model\Faktura\FakturaPdf
|
|
- App\Model\Faktura\SeznamFakturPdf
|
|
|
|
# 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
|