Skip to content

Commit

Permalink
add other changes related to bc breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig committed Dec 17, 2024
1 parent 1d9a517 commit 20fc7b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
5 changes: 2 additions & 3 deletions src/Model/DefaultSearch/Debug/SearchInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
*/
final class SearchInformation
{
// ToDo make constants public in 2.0
public const VERBOSITY_VERBOSE = 2;
private const VERBOSITY_VERBOSE = 2;

public const VERBOSITY_VERY_VERBOSE = 3;
private const VERBOSITY_VERY_VERBOSE = 3;

public function __construct(
private readonly AdapterSearchInterface $search,
Expand Down
17 changes: 1 addition & 16 deletions src/PimcoreGenericDataIndexBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
namespace Pimcore\Bundle\GenericDataIndexBundle;

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

private function registerSearchModifierAttribute(ContainerBuilder $container): void
{
$container->registerAttributeForAutoconfiguration(
SearchModifierHandler::class,
static function (
ChildDefinition $definition,
SearchModifierHandler $attribute,
Reflector $reflector
): void {
self::configureSearchModifierHandler($definition, $reflector);
}
);

/**
* @TODO Remove this in version 2.0
*/
$container->registerAttributeForAutoconfiguration(
AsSearchModifierHandler::class,
static function (
Expand Down

0 comments on commit 20fc7b7

Please sign in to comment.