Skip to content

Commit

Permalink
interfaces cleanup (#3732)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitek-rostislav authored Jan 17, 2025
2 parents 3bfcf49 + f02c772 commit 14a8579
Show file tree
Hide file tree
Showing 522 changed files with 534 additions and 3,228 deletions.
11 changes: 0 additions & 11 deletions src/Command/Exception/CommandException.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Command/Exception/CronCommandException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class CronCommandException extends Exception implements CommandException
class CronCommandException extends Exception
{
/**
* @param string $message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class TranslationReplaceSourceCommandException extends Exception implements CommandException
class TranslationReplaceSourceCommandException extends Exception
{
/**
* @param string $message
Expand Down
21 changes: 0 additions & 21 deletions src/Command/Exception/UnavailableMicroserviceException.php

This file was deleted.

11 changes: 0 additions & 11 deletions src/Component/Breadcrumb/Exception/BreadcrumbException.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class BreadcrumbGeneratorNotFoundException extends Exception implements BreadcrumbException
class BreadcrumbGeneratorNotFoundException extends Exception
{
/**
* @param string $routeName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class UnableToGenerateBreadcrumbItemsException extends Exception implements BreadcrumbException
class UnableToGenerateBreadcrumbItemsException extends Exception
{
/**
* @param \Exception|null $previous
Expand Down
11 changes: 0 additions & 11 deletions src/Component/ConfirmDelete/Exception/ConfirmDeleteException.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class InvalidEntityPassedException extends Exception implements ConfirmDeleteException
class InvalidEntityPassedException extends Exception
{
/**
* @param string $message
Expand Down
11 changes: 0 additions & 11 deletions src/Component/Console/Exception/ConsoleException.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Component/Console/Exception/NoDomainSetException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class NoDomainSetException extends Exception implements ConsoleException
class NoDomainSetException extends Exception
{
/**
* @param \Exception|null $previous
Expand Down
11 changes: 0 additions & 11 deletions src/Component/Cron/Config/Exception/CronConfigException.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class CronModuleConfigNotFoundException extends Exception implements CronConfigException
class CronModuleConfigNotFoundException extends Exception
{
/**
* @param string $serviceId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class InvalidTimeFormatException extends Exception implements CronConfigException
class InvalidTimeFormatException extends Exception
{
/**
* @param string $timeString
Expand Down
2 changes: 1 addition & 1 deletion src/Component/Cron/CronModuleFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Shopsys\FrameworkBundle\Component\EntityExtension\EntityNameResolver;

class CronModuleFactory implements CronModuleFactoryInterface
class CronModuleFactory
{
/**
* @param \Shopsys\FrameworkBundle\Component\EntityExtension\EntityNameResolver $entityNameResolver
Expand Down
14 changes: 0 additions & 14 deletions src/Component/Cron/CronModuleFactoryInterface.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/Component/Cron/CronModuleRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class CronModuleRepository
{
/**
* @param \Doctrine\ORM\EntityManagerInterface $em
* @param \Shopsys\FrameworkBundle\Component\Cron\CronModuleFactoryInterface $cronModuleFactory
* @param \Shopsys\FrameworkBundle\Component\Cron\CronModuleFactory $cronModuleFactory
*/
public function __construct(
protected readonly EntityManagerInterface $em,
protected readonly CronModuleFactoryInterface $cronModuleFactory,
protected readonly CronModuleFactory $cronModuleFactory,
) {
}

Expand Down
11 changes: 0 additions & 11 deletions src/Component/Cron/Exception/CronException.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class InvalidCronModuleException extends Exception implements CronException
class InvalidCronModuleException extends Exception
{
/**
* @param string $serviceId
Expand Down
11 changes: 0 additions & 11 deletions src/Component/DataFixture/Exception/DataFixtureException.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class EntityIdIsNotSetException extends Exception implements DataFixtureException
class EntityIdIsNotSetException extends Exception
{
/**
* @param string $referenceName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class EntityNotFoundException extends Exception implements DataFixtureException
class EntityNotFoundException extends Exception
{
/**
* @param string $referenceName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class MethodGetIdDoesNotExistException extends Exception implements DataFixtureException
class MethodGetIdDoesNotExistException extends Exception
{
/**
* @param string $message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use InvalidArgumentException;
use Shopsys\FrameworkBundle\Component\Utils\Debug;

class ObjectRequiredException extends InvalidArgumentException implements DataFixtureException
class ObjectRequiredException extends InvalidArgumentException
{
/**
* @param mixed $given
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class PersistentReferenceNotFoundException extends Exception implements DataFixtureException
class PersistentReferenceNotFoundException extends Exception
{
/**
* @param string $referenceName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class UnknownNameTranslationForOrderStatusReferenceNameException extends Exception implements DataFixtureException
class UnknownNameTranslationForOrderStatusReferenceNameException extends Exception
{
/**
* @param string $referenceName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class UnsupportedLocaleException extends Exception implements DataFixtureException
class UnsupportedLocaleException extends Exception
{
/**
* @param string $locale
Expand Down
4 changes: 2 additions & 2 deletions src/Component/DataFixture/PersistentReferenceFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ class PersistentReferenceFacade
/**
* @param \Doctrine\ORM\EntityManagerInterface $em
* @param \Shopsys\FrameworkBundle\Component\DataFixture\PersistentReferenceRepository $persistentReferenceRepository
* @param \Shopsys\FrameworkBundle\Component\DataFixture\PersistentReferenceFactoryInterface $persistentReferenceFactory
* @param \Shopsys\FrameworkBundle\Component\DataFixture\PersistentReferenceFactory $persistentReferenceFactory
*/
public function __construct(
protected readonly EntityManagerInterface $em,
protected readonly PersistentReferenceRepository $persistentReferenceRepository,
protected readonly PersistentReferenceFactoryInterface $persistentReferenceFactory,
protected readonly PersistentReferenceFactory $persistentReferenceFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Component/DataFixture/PersistentReferenceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Shopsys\FrameworkBundle\Component\EntityExtension\EntityNameResolver;

class PersistentReferenceFactory implements PersistentReferenceFactoryInterface
class PersistentReferenceFactory
{
/**
* @param \Shopsys\FrameworkBundle\Component\EntityExtension\EntityNameResolver $entityNameResolver
Expand Down
20 changes: 0 additions & 20 deletions src/Component/DataFixture/PersistentReferenceFactoryInterface.php

This file was deleted.

11 changes: 0 additions & 11 deletions src/Component/Doctrine/Cache/Exception/DoctrineCacheException.php

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions src/Component/Doctrine/Exception/EntityException.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Exception;

class UnexpectedTypeException extends Exception implements EntityException
class UnexpectedTypeException extends Exception
{
/**
* @param string $message
Expand Down
11 changes: 0 additions & 11 deletions src/Component/Domain/Config/Exception/DomainConfigException.php

This file was deleted.

Loading

0 comments on commit 14a8579

Please sign in to comment.