Skip to content

Commit

Permalink
Remove all deprecated classes and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
discordier committed Feb 28, 2017
1 parent b05c624 commit 07fd9a9
Show file tree
Hide file tree
Showing 20 changed files with 1 addition and 1,250 deletions.
8 changes: 0 additions & 8 deletions contao/config/event_listeners.php
Expand Up @@ -22,7 +22,6 @@
*/

use ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent;
use MetaModels\Attribute\Events\CreateAttributeFactoryEvent;
use MetaModels\DcGeneral\Events\MetaModel\CreateVariantButton;
use MetaModels\DcGeneral\Events\MetaModel\CutButton;
use MetaModels\DcGeneral\Events\MetaModel\DuplicateModel;
Expand Down Expand Up @@ -83,11 +82,6 @@ function (MetaModelsBootEvent $event) {
$dispatcher->addSubscriber(new InputScreenAddAllHandler($event->getServiceContainer()));
}
),
MetaModelsEvents::ATTRIBUTE_FACTORY_CREATE => array(
function (CreateAttributeFactoryEvent $event) {
\MetaModels\Attribute\Events\LegacyListener::registerLegacyAttributeFactoryEvents($event);
}
),
MetaModelsEvents::FILTER_SETTING_FACTORY_CREATE => array(
function (CreateFilterSettingFactoryEvent $event) {
$factory = $event->getFactory();
Expand All @@ -97,8 +91,6 @@ function (CreateFilterSettingFactoryEvent $event) {
->addTypeFactory(new CustomSqlFilterSettingTypeFactory())
->addTypeFactory(new ConditionAndFilterSettingTypeFactory())
->addTypeFactory(new ConditionOrFilterSettingTypeFactory());

\MetaModels\Filter\Setting\Events\LegacyListener::registerLegacyFactories($event);
}
),
// deprecated since 2.0, to be removed in 3.0.
Expand Down
2 changes: 1 addition & 1 deletion src/MetaModels/Attribute/AttributeFactory.php
Expand Up @@ -54,7 +54,7 @@ class AttributeFactory implements IAttributeFactory
*
* @param IMetaModelsServiceContainer $serviceContainer The service container to use.
*
* @return Factory
* @return AttributeFactory
*/
public function setServiceContainer(IMetaModelsServiceContainer $serviceContainer)
{
Expand Down
Expand Up @@ -28,15 +28,6 @@
*/
class CreateAttributeFactoryEvent extends Event
{
/**
* The event name.
*
* @deprecated Use MetaModelsEvents::ATTRIBUTE_FACTORY_CREATE
*
* @see \MetaModels\MetaModelsEvents::ATTRIBUTE_FACTORY_CREATE
*/
const NAME = 'metamodels.attribute.factory.create';

/**
* The factory that has been created.
*
Expand Down
57 changes: 0 additions & 57 deletions src/MetaModels/Attribute/Events/LegacyListener.php

This file was deleted.

110 changes: 0 additions & 110 deletions src/MetaModels/Attribute/Factory.php

This file was deleted.

85 changes: 0 additions & 85 deletions src/MetaModels/Attribute/IFactory.php

This file was deleted.

0 comments on commit 07fd9a9

Please sign in to comment.