Multiple services of type Nette\Database\Explorer found: database.default.connection, database.default.context

simPod
Člen | 383
+
0
-

Nakonfiguroval jsem si db takhle:

database:
    dsn: '%database.driver%:host=%database.host%;dbname=%database.dbname%'
    user: %database.user%
    password: %database.password%

a nic vic.

PRi pokusu o autowire public function __construct(\Nette\Database\Explorer $database) dostavam

Multiple services of type Nette\Database\Explorer found: database.default.connection, database.default.context

Netusite nekdo odkud/proc se to tam muze dit?