-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate not registering filters #6976
Deprecate not registering filters #6976
Conversation
e05de1a
to
0956cfd
Compare
@@ -13,9 +13,13 @@ | |||
|
|||
namespace Sonata\AdminBundle\DependencyInjection\Compiler; | |||
|
|||
use Sonata\AdminBundle\Filter\FilterInterface; | |||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |||
use Symfony\Component\DependencyInjection\ContainerBuilder; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This blank line should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is php-cs-fixer
who adds that line.
use Sonata\AdminBundle\Filter\FilterFactoryInterface; | ||
use Sonata\AdminBundle\Tests\Fixtures\Filter\BarFilter; | ||
use Sonata\AdminBundle\Tests\Fixtures\Filter\FooFilter; | ||
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Definition; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
{ | ||
} | ||
|
||
public function apply($query, $value): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next_major, add typehint ?
These changes force the user to register filters as services so in next major version a service locator could be used instead of the complete container.
0956cfd
to
7532bd0
Compare
Thank you @franmomu |
Subject
These changes force the user to register filters as services so in next major version a service locator could be used instead of the complete container.
I am targeting this branch, because these changes are BC.
Changelog