Skip to content

[HttpKernel] The methods of the deprecated event should be final #31701

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

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[HttpKernel] The methods of the deprecated event should be final
  • Loading branch information
Simperfit committed May 29, 2019
commit 64a2ee011755c00314aebf6f57d384616a57802c
9 changes: 9 additions & 0 deletions UPGRADE-4.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ DependencyInjection
my_service:
factory: ['@factory_service', method]
```

HttpKernel
----------

* The method `FilterControllerArgumentsEvent::getArguments()` marked final.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing verb: has been

* The method `FilterControllerEvent::getController()` marked final.
* The method `FilterResponseEvent::getResponse()` marked final.
* The method `GetResponseForExceptionEvent::getException()` marked final.
* The method `PostResponseEvent::getResponse()` marked final.
9 changes: 9 additions & 0 deletions src/Symfony/Component/HttpKernel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
CHANGELOG
=========

4.4.0
-----

* The method `FilterControllerArgumentsEvent::getArguments()` has been made final
* The method `FilterControllerEvent::getController()` has been made final
* The method `FilterResponseEvent::getResponse()` has been made final
* The method `GetResponseForExceptionEvent::getException()` has been made final
* The method `PostResponseEvent::getResponse()` has been made final

4.3.0
-----

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public function __construct(HttpKernelInterface $kernel, callable $controller, a
}

/**
* @final since Symfony 4.4
*
* @return array
*/
public function getArguments()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public function __construct(HttpKernelInterface $kernel, callable $controller, R
/**
* Returns the current controller.
*
* @final since Symfony 4.4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry if that wasn't clear, but this is needed only for NON deprecated classes.

*
* @return callable
*/
public function getController()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public function __construct(HttpKernelInterface $kernel, Request $request, int $
/**
* Returns the current response object.
*
* @final since Symfony 4.4
*
* @return Response
*/
public function getResponse()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public function __construct(HttpKernelInterface $kernel, Request $request, int $
/**
* Returns the thrown exception.
*
* @final since Symfony 4.4
*
* @return \Exception The thrown exception
*/
public function getException()
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Component/HttpKernel/Event/PostResponseEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public function __construct(HttpKernelInterface $kernel, Request $request, Respo
/**
* Returns the response for which this event was thrown.
*
* @final since Symfony 4.4
*
* @return Response
*/
public function getResponse()
Expand Down