Skip to content

Commit 20fc7b7

Browse files
committed
add other changes related to bc breaks
1 parent 1d9a517 commit 20fc7b7

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

src/Model/DefaultSearch/Debug/SearchInformation.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@
2323
*/
2424
final class SearchInformation
2525
{
26-
// ToDo make constants public in 2.0
27-
public const VERBOSITY_VERBOSE = 2;
26+
private const VERBOSITY_VERBOSE = 2;
2827

29-
public const VERBOSITY_VERY_VERBOSE = 3;
28+
private const VERBOSITY_VERY_VERBOSE = 3;
3029

3130
public function __construct(
3231
private readonly AdapterSearchInterface $search,

src/PimcoreGenericDataIndexBundle.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
namespace Pimcore\Bundle\GenericDataIndexBundle;
1818

1919
use Pimcore\Bundle\ElasticsearchClientBundle\PimcoreElasticsearchClientBundle;
20-
use Pimcore\Bundle\GenericDataIndexBundle\Attribute\OpenSearch\AsSearchModifierHandler;
21-
use Pimcore\Bundle\GenericDataIndexBundle\Attribute\Search\AsSearchModifierHandler as SearchModifierHandler;
20+
use Pimcore\Bundle\GenericDataIndexBundle\Attribute\Search\AsSearchModifierHandler;
2221
use Pimcore\Bundle\GenericDataIndexBundle\DependencyInjection\Compiler\SearchModifierHandlerPass;
2322
use Pimcore\Bundle\GenericDataIndexBundle\DependencyInjection\Compiler\ServiceLocatorPass;
2423
use Pimcore\Bundle\GenericDataIndexBundle\Enum\DependencyInjection\ServiceTag;
@@ -70,20 +69,6 @@ public static function registerDependentBundles(BundleCollection $collection): v
7069

7170
private function registerSearchModifierAttribute(ContainerBuilder $container): void
7271
{
73-
$container->registerAttributeForAutoconfiguration(
74-
SearchModifierHandler::class,
75-
static function (
76-
ChildDefinition $definition,
77-
SearchModifierHandler $attribute,
78-
Reflector $reflector
79-
): void {
80-
self::configureSearchModifierHandler($definition, $reflector);
81-
}
82-
);
83-
84-
/**
85-
* @TODO Remove this in version 2.0
86-
*/
8772
$container->registerAttributeForAutoconfiguration(
8873
AsSearchModifierHandler::class,
8974
static function (

0 commit comments

Comments
 (0)