Skip to content

Commit c496071

Browse files
committed
🔥 removed dead code
1 parent 2d81b2d commit c496071

2 files changed

Lines changed: 1 addition & 116 deletions

File tree

src/Exporter.php

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,18 @@
1717
use TapestryCloud\Database\Hydrators\File as FileHydrator;
1818

1919
class Exporter {
20-
21-
/**
22-
* @var Connection
23-
*/
24-
private $connection;
25-
2620
/**
2721
* @var EntityManagerInterface|EntityManager
2822
*/
2923
private $entityManager;
3024

3125
/**
3226
* Exporter constructor.
33-
* @param Connection $connection
3427
* @param EntityManagerInterface $entityManager
3528
* @throws \Exception
3629
*/
37-
public function __construct(Connection $connection, EntityManagerInterface $entityManager)
30+
public function __construct(EntityManagerInterface $entityManager)
3831
{
39-
$this->connection = $connection;
40-
if (!$this->connection->connect()) {
41-
throw new \Exception('Unable to connect to database');
42-
}
43-
44-
$tables = $this->connection->getSchemaManager()->listTables();
45-
46-
$migrator = new Migrator($this->connection);
47-
if (count($tables) < $migrator->tables()) {
48-
//$migrator->migrate();
49-
}
50-
5132
$this->entityManager = $entityManager;
5233
}
5334

@@ -77,6 +58,5 @@ public function export(Project $project) {
7758

7859
$contentTypeSync = new ContentTypes($this->entityManager);
7960
$contentTypeSync->sync($contentTypes, $environment);
80-
8161
}
8262
}

src/Migrator.php

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)