-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add runtime deprecations for class aliases
We added many class rename deprecations during 4.x but didn't include runtime deprecations for them. Adding runtime deprecations in 4.5 will encourage developers to update their code before the breaking change in 5.0 Refs cakephp/docs#7561
- Loading branch information
Showing
2 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
class_alias( | ||
'Cake\Controller\ControllerFactory', | ||
'Cake\Http\ControllerFactory' | ||
); | ||
deprecationWarning( | ||
'Use Cake\Controller\ControllerFactory instead of Cake\Http\ControllerFactory.' | ||
'Since 4.2.0: Cake\Http\ControllerFactory is deprecated. ' . | ||
'Use Cake\Controller\ControllerFactory instead.' | ||
); | ||
class_exists('Cake\Controller\ControllerFactory'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters