Skip to content

Commit

Permalink
Deprecating unsused classes
Browse files Browse the repository at this point in the history
  • Loading branch information
escopecz committed Dec 11, 2023
1 parent 8863aa8 commit 5a5902c
Show file tree
Hide file tree
Showing 27 changed files with 81 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/AppCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class AppCache extends HttpCache
{
}
3 changes: 3 additions & 0 deletions app/bundles/ApiBundle/Entity/oAuth2/RefreshToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use FOS\OAuthServerBundle\Model\RefreshToken as BaseRefreshToken;
use Mautic\CoreBundle\Doctrine\Mapping\ClassMetadataBuilder;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class RefreshToken extends BaseRefreshToken
{
public static function loadMetadata(ORM\ClassMetadata $metadata): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Mautic\CampaignBundle\Executioner\Scheduler\Exception;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class ExecutionProhibitedException extends \Exception
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Mautic\CampaignBundle\Executioner\Scheduler\Exception;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class NotTimeYetException extends \Exception
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class CampaignEventLeadChangeType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
Expand Down
3 changes: 3 additions & 0 deletions app/bundles/CoreBundle/Doctrine/TranslationMigrationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use Doctrine\DBAL\Schema\Schema;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
trait TranslationMigrationTrait
{
/**
Expand Down
3 changes: 3 additions & 0 deletions app/bundles/CoreBundle/Doctrine/VariantMigrationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use Doctrine\DBAL\Schema\Schema;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
trait VariantMigrationTrait
{
/**
Expand Down
3 changes: 3 additions & 0 deletions app/bundles/CoreBundle/Entity/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use Doctrine\ORM\Mapping as ORM;
use Mautic\CoreBundle\Doctrine\Mapping\ClassMetadataBuilder;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class Cache
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use Symfony\Component\Form\DataTransformerInterface;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class DatetimeToStringTransformer implements DataTransformerInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use Mautic\CoreBundle\Helper\EmojiHelper;
use Symfony\Component\Form\DataTransformerInterface;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class EmojiToHtmlTransformer implements DataTransformerInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use Symfony\Component\Form\DataTransformerInterface;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class NullToEmptyTransformer implements DataTransformerInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Predis\Response\ErrorInterface;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class RedisSentinelSessionHandler extends AbstractSessionHandler
{
/**
Expand Down
3 changes: 3 additions & 0 deletions app/bundles/CoreBundle/Test/MauticSqliteTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Mautic\UserBundle\DataFixtures\ORM\LoadRoleData;
use Mautic\UserBundle\DataFixtures\ORM\LoadUserData;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
abstract class MauticSqliteTestCase extends AbstractMauticTestCase
{
protected function setUp(): void
Expand Down
3 changes: 3 additions & 0 deletions app/bundles/EmailBundle/Form/Type/AbTestPropertiesType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0. Use \Mautic\PageBundle\Form\Type\AbTestPropertiesType instead.
*/
class AbTestPropertiesType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
Expand Down
3 changes: 3 additions & 0 deletions app/bundles/EmailBundle/Validator/DsnValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
use Symfony\Component\Validator\ConstraintValidator;
use Symfony\Component\Validator\Exception\UnexpectedTypeException;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class DsnValidator extends ConstraintValidator
{
public function __construct(
Expand Down
3 changes: 3 additions & 0 deletions app/bundles/FormBundle/Tests/FormTestAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
use Symfony\Component\Routing\RouterInterface;
use Twig\Environment;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class FormTestAbstract extends TestCase
{
protected static $mockId = 123;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class UniqueCustomFieldValidator extends ConstraintValidator
{
public function __construct(
Expand Down
3 changes: 3 additions & 0 deletions app/bundles/MarketplaceBundle/Exception/InstallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

namespace Mautic\MarketplaceBundle\Exception;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class InstallException extends \Exception
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use Symfony\Component\DependencyInjection\EnvVarProcessorInterface;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class MessengerNullableEnvVarProcessor implements EnvVarProcessorInterface
{
public function getEnv($prefix, $name, \Closure $getEnv)
Expand Down
3 changes: 3 additions & 0 deletions app/bundles/MessengerBundle/MessageHandler/TestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Symfony\Component\Messenger\Handler\MessageSubscriberInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class TestHandler implements MessageSubscriberInterface
{
public function __construct(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use Symfony\Component\Messenger\Transport\TransportFactoryInterface;
use Symfony\Component\Messenger\Transport\TransportInterface;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class NullTransportFactory implements TransportFactoryInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions app/bundles/MessengerBundle/Validator/DsnValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use Symfony\Component\Validator\ConstraintValidator;
use Symfony\Component\Validator\Exception\UnexpectedTypeException;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class DsnValidator extends ConstraintValidator
{
public function __construct(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use Mautic\NotificationBundle\Entity\Notification;
use Mautic\NotificationBundle\Entity\Stat;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class NotificationClickEvent extends CommonEvent
{
private \Mautic\NotificationBundle\Entity\Notification $notification;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use Mautic\LeadBundle\Entity\Lead;
use Mautic\NotificationBundle\Entity\Notification;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class SendingNotificationEvent extends CommonEvent
{
/**
Expand Down
3 changes: 3 additions & 0 deletions app/bundles/NotificationBundle/Form/Type/ConfigType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class ConfigType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
Expand Down
3 changes: 3 additions & 0 deletions app/bundles/PageBundle/Form/Type/PagePublishDatesType.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class PagePublishDatesType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
Expand Down
3 changes: 3 additions & 0 deletions plugins/MauticSocialBundle/Form/Type/TwitterCustomType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated since Mautic 5.0, to be removed in 6.0 with no replacement.
*/
class TwitterCustomType extends TwitterAbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
Expand Down

0 comments on commit 5a5902c

Please sign in to comment.