-
Notifications
You must be signed in to change notification settings - Fork 379
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
Add support for Symfony 7 #1535
Conversation
class WarmupCacheHandler implements MessageHandlerInterface | ||
class WarmupCacheHandler |
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.
The interface is removed in favor of the AsMessageHandler
attribute for autowiring, but since the service isn't autowired, the attribute isn't really necessary here.
@@ -21,8 +21,6 @@ | |||
use Symfony\Component\Mime\MimeTypes; | |||
|
|||
/** | |||
* @requires PHP 5.4 |
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.
Package requires PHP 7.2, so this is unnecessary
@@ -21,8 +21,6 @@ | |||
use Symfony\Component\Mime\MimeTypes; | |||
|
|||
/** | |||
* @requires PHP 7.2 |
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.
Package requires PHP 7.2, so this is unnecessary
@@ -21,8 +21,6 @@ | |||
use Symfony\Component\Routing\RequestContext; | |||
|
|||
/** | |||
* @requires PHP 7.2 |
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.
Package requires PHP 7.2, so this is unnecessary
use Symfony\Component\Messenger\MessageBusInterface; | ||
|
||
/** | ||
* @requires PHP 7.1 |
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.
Package requires PHP 7.2, so this is unnecessary
public function testShouldImplementMessageHandlerInterface(): void | ||
{ | ||
$rc = new \ReflectionClass(WarmupCacheHandler::class); | ||
|
||
$this->assertTrue($rc->implementsInterface(MessageHandlerInterface::class)); | ||
} | ||
|
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.
Since the interface is removed from the framework, and the class no longer implements it, the test is unnecessary.
public static function setUpBeforeClass(): void | ||
{ | ||
if (!class_exists(Helper::class)) { | ||
static::markTestSkipped('Test requires deprecated symfony/templating component'); | ||
} | ||
} |
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.
symfony/templating
is deprecated and removed from the framework in 7.0. So, this can't be tested when working with versions of the framework without the component are installed.
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.
thanks a lot! great cleanups!
i guess we should eventually do a new major version and get rid of legacy things like templating (and also support only the maintained symfony versions to reduce the matrix a bit)
Just as the title says, adds support for Symfony 7