Skip to content

Commit e4cf668

Browse files
committed
Register event listeners, rework database queries and fix the tests.
1 parent bdb557e commit e4cf668

File tree

11 files changed

+223
-156
lines changed

11 files changed

+223
-156
lines changed

src/Attribute/AttributeTypeFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class AttributeTypeFactory implements IAttributeTypeFactory
4747
protected $tableManipulator;
4848

4949
/**
50-
* MetaModels factory
50+
* MetaModels factory.
5151
*
5252
* @var IFactory
5353
*/

src/Attribute/MetaModelSelect.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,22 @@ public function __construct(
9898
parent::__construct($objMetaModel, $arrData, $connection, $tableManipulator);
9999

100100
if (null === $factory) {
101+
// @codingStandardsIgnoreStart Silencing errors is discouraged
101102
@trigger_error(
102103
'Factory is missing. It has to be passed in the constructor. Fallback will be dropped.',
103104
E_USER_DEPRECATED
104105
);
106+
// @codingStandardIgnoreEnd
105107
$factory = System::getContainer()->get('metamodels.factory');
106108
}
107109

108110
if (null === $filterSettingFactory) {
111+
// @codingStandardsIgnoreStart Silencing errors is discouraged
109112
@trigger_error(
110113
'Filter setting factory is missing. It has to be passed in the constructor. Fallback will be dropped.',
111114
E_USER_DEPRECATED
112115
);
116+
// @codingStandardIgnoreEnd
113117
$filterSettingFactory = System::getContainer()->get('metamodels.filter_setting_factory');
114118
}
115119

src/DependencyInjection/MetaModelsAttributeSelectExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ public function load(array $configs, ContainerBuilder $container)
3737
{
3838
$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
3939
$loader->load('services.yml');
40+
$loader->load('listeners.yml');
4041
}
4142
}

0 commit comments

Comments
 (0)