Actualización

This commit is contained in:
Xes
2025-04-10 12:24:57 +02:00
parent 8969cc929d
commit 45420b6f0d
39760 changed files with 4303286 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
Custom Configuration
====================
The ``AbstractCommand::setMigrationConfiguration()`` method allows you to set your own configuration.
This allows you to to build doctrine migration integration into your application or framework with
code that would looks like the following:
.. code-block:: php
use Doctrine\DBAL\Migrations\Configuration\Configuration;
$configuration = new Configuration();
$configuration->setMigrationsTableName(...);
$configuration->setMigrationsDirectory(...);
$configuration->setMigrationsNamespace(...);
$configuration->registerMigrationsFromDirectory(...);
// My command that extends Doctrine\DBAL\Migrations\Tools\Console\Command\AbstractCommand
$command->setMigrationConfiguration($configuration);