Skip to content

Commit

Permalink
Remove unused Contao Framework from the Commandos and Migrations (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
doishub committed Mar 8, 2023
1 parent d511835 commit 84cbf0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/StyleManager/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public function __construct(ContaoFramework $framework, Connection $connection)
*/
public function shouldRunObjectConversion($table = null): bool
{
$this->framework->initialize();

$schemaManager = method_exists($this->connection, 'createSchemaManager') ?
$this->connection->createSchemaManager() :
$this->connection->getSchemaManager()
Expand Down Expand Up @@ -76,6 +78,8 @@ public function shouldRunObjectConversion($table = null): bool
*/
public function performObjectConversion($table = null): void
{
$this->framework->initialize();

$schemaManager = method_exists($this->connection, 'createSchemaManager') ?
$this->connection->createSchemaManager() :
$this->connection->getSchemaManager()
Expand Down

0 comments on commit 84cbf0a

Please sign in to comment.