Skip to content

Instantly share code, notes, and snippets.

<?php
require 'deployer.phar';
task('prod_server', 'log in to prod server', function () {
connect('prod.ssh.test.com', 'user', 'password');
});
task('upload', 'upload files', function () {
upload(__DIR__, '/home/test');
@jmsche
jmsche / AbstractMigrationCommand.php
Created September 9, 2020 11:14
Proxy commands for Doctrine Migrations bundle with multiple entity managers.
<?php
declare(strict_types=1);
namespace App\Command\Migration;
use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\Migrations\Configuration\EntityManager\ExistingEntityManager;
use Doctrine\Migrations\Configuration\Migration\YamlFile;
use Doctrine\Migrations\DependencyFactory;