We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
d46cbd6#commitcomment-24528344
The text was updated successfully, but these errors were encountered:
Current sad sollution:
extensions: nextras.migrations: Nextras\Migrations\Bridges\NetteDI\MigrationsExtension services: nextras.migrations.configuration: factory: MigrationConfiguration arguments: - %appDir%/../migrations - @Nextras\Migrations\IDriver - false - [] - @Nette\DI\Container nextras.migrations: dir: %appDir%/../migrations driver: pgsql dbal: nextras
<?php declare(strict_types = 1); use Nette\DI\Container; use Nextras\Migrations\Configurations\DefaultConfiguration; use Nextras\Migrations\IDriver; class MigrationConfiguration extends DefaultConfiguration { /** @var Container */ private $container; public function __construct($dir, IDriver $driver, $withDummyData = true, array $phpParams = [], Container $container) { parent::__construct($dir, $driver, $withDummyData, $phpParams); $this->container = $container; } public function getExtensionHandlers() { $handlers = parent::getExtensionHandlers(); $handlers['php'] = $this->container->getByType(ConnectionPhpHandler::class); return $handlers; } }
Sorry, something went wrong.
No branches or pull requests
d46cbd6#commitcomment-24528344
The text was updated successfully, but these errors were encountered: