8000 Decorator extension used with Search extension · Issue #215 · nette/di · GitHub
[go: up one dir, main page]

Skip to content

Decorator extension used with Search extension #215

@solcik

Description

@solcik

Version: 3.0.0

            "name": "nette/di",
            "version": "v3.0.0",
            "source": {
                "type": "git",
                "url": "https://github.com/nette/di.git",
                "reference": "19d83539245aaacb59470828919182411061841f"
            },

Bug Description

When I use Decorator together with Search extension it does not decorate services. It is in the DI, but does not have tag.

If I insert service definition directly without the use of Search extension, then it does work as expected.

Steps To Reproduce

decorator:
	Doctrine\Common\EventSubscriber:
		tags: [nettrine.subscriber]
search:
	-
		in: %appDir%/Subscriber
<?php

declare(strict_types=1);

namespace Acme\Subscriber;

use Doctrine\Common\EventSubscriber;

final class LifecycleSubscriber implements EventSubscriber
{}

Expected Behavior

Acme\Subscriber\LifecycleSubscriber class should be in DI decorated with tag nettrine.subscriber.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0