Skip to content

Commit

Permalink
TASK: Adjust doctrine exception namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jul 4, 2024
1 parent fcde135 commit d01548b
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Neos.Media/Classes/Command/MediaCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Exception as DbalException;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Neos\Flow\Annotations as Flow;
Expand Down
12 changes: 6 additions & 6 deletions Neos.Media/Migrations/Mysql/Version20181104152203.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* source code.
*/

use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\DBAL\Exception as DbalException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

Expand All @@ -22,7 +22,7 @@ class Version20181104152203 extends AbstractMigration
/**
* @return string
*/
public function getDescription(): string
public function getDescription(): string
{
return 'Introduce copyright notice';
}
Expand All @@ -33,7 +33,7 @@ public function getDescription(): string
* @throws DBALException
* @throws AbortMigrationException
*/
public function up(Schema $schema): void
public function up(Schema $schema): void
{
// this up() migration is autogenerated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
Expand All @@ -47,11 +47,11 @@ public function up(Schema $schema): void
* @throws DBALException
* @throws AbortMigrationException
*/
public function down(Schema $schema): void
public function down(Schema $schema): void
{
// this down() migration is autogenerated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');

$this->addSql('ALTER TABLE neos_media_domain_model_asset DROP copyrightnotice');
}
}
4 changes: 2 additions & 2 deletions Neos.Media/Migrations/Mysql/Version20191125132700.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Neos\Flow\Persistence\Doctrine\Migrations;

use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\DBAL\Exception as DbalException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

Expand Down
2 changes: 1 addition & 1 deletion Neos.Media/Migrations/Mysql/Version20200306233229.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;

class Version20200306233229 extends AbstractMigration
{
Expand Down
4 changes: 2 additions & 2 deletions Neos.Media/Migrations/Mysql/Version20200823164700.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Neos\Flow\Persistence\Doctrine\Migrations;

use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\DBAL\Exception as DbalException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

Expand Down
4 changes: 2 additions & 2 deletions Neos.Media/Migrations/Mysql/Version20200828170100.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Neos\Flow\Persistence\Doctrine\Migrations;

use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\DBAL\Exception as DbalException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

Expand Down
12 changes: 6 additions & 6 deletions Neos.Media/Migrations/Postgresql/Version20181104152204.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* source code.
*/

use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\DBAL\Exception as DbalException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

Expand All @@ -22,7 +22,7 @@ class Version20181104152204 extends AbstractMigration
/**
* @return string
*/
public function getDescription(): string
public function getDescription(): string
{
return 'Introduce copyright notice';
}
Expand All @@ -33,7 +33,7 @@ public function getDescription(): string
* @throws DBALException
* @throws AbortMigrationException
*/
public function up(Schema $schema): void
public function up(Schema $schema): void
{
// this up() migration is autogenerated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on "postgresql".');
Expand All @@ -47,11 +47,11 @@ public function up(Schema $schema): void
* @throws DBALException
* @throws AbortMigrationException
*/
public function down(Schema $schema): void
public function down(Schema $schema): void
{
// this down() migration is autogenerated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on "postgresql".');

$this->addSql('ALTER TABLE neos_media_domain_model_asset DROP copyrightnotice');
}
}
4 changes: 2 additions & 2 deletions Neos.Media/Migrations/Postgresql/Version20190315122901.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Neos\Flow\Persistence\Doctrine\Migrations;

use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\DBAL\Exception as DbalException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

Expand Down
4 changes: 2 additions & 2 deletions Neos.Media/Migrations/Postgresql/Version20191125132701.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Neos\Flow\Persistence\Doctrine\Migrations;

use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\DBAL\Exception as DbalException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

Expand Down
2 changes: 1 addition & 1 deletion Neos.Media/Migrations/Postgresql/Version20200307122055.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;

class Version20200307122055 extends AbstractMigration
{
Expand Down
4 changes: 2 additions & 2 deletions Neos.Media/Migrations/Postgresql/Version20200823164701.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Neos\Flow\Persistence\Doctrine\Migrations;

use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\DBAL\Exception as DbalException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

Expand Down
4 changes: 2 additions & 2 deletions Neos.Media/Migrations/Postgresql/Version20200828170101.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Neos\Flow\Persistence\Doctrine\Migrations;

use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\DBAL\Exception as DbalException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

Expand Down
2 changes: 1 addition & 1 deletion Neos.Neos/Migrations/Mysql/Version20211220145601.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Neos\Flow\Persistence\Doctrine\Migrations;

use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

Expand Down
2 changes: 1 addition & 1 deletion Neos.Neos/Migrations/Postgresql/Version20211220145602.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Neos\Flow\Persistence\Doctrine\Migrations;

use Doctrine\DBAL\Migrations\AbortMigrationException;
use Doctrine\Migrations\Exception\AbortMigration as AbortMigrationException;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

Expand Down

0 comments on commit d01548b

Please sign in to comment.