Skip to content

Commit 94c188d

Browse files
committed
deprecated magic properties except for $template & $payload (BC break)
1 parent e6cef0b commit 94c188d

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

src/Application/Request.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
/**
1616
* Presenter request.
1717
*
18-
* @property string $presenterName
19-
* @property array $parameters
20-
* @property array $post
21-
* @property array $files
22-
* @property string|null $method
18+
* @property-deprecated string $presenterName
19+
* @property-deprecated array $parameters
20+
* @property-deprecated array $post
21+
* @property-deprecated array $files
22+
* @property-deprecated string|null $method
2323
*/
2424
final class Request
2525
{

src/Application/UI/Component.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* other child components, and interact with user. Components have properties
2020
* for storing their status, and responds to user command.
2121
*
22-
* @property-read Presenter $presenter
23-
* @property-read bool $linkCurrent
22+
* @property-deprecated Presenter $presenter
23+
* @property-deprecated bool $linkCurrent
2424
*/
2525
abstract class Component extends Nette\ComponentModel\Container implements SignalReceiver, StatePersistent, \ArrayAccess
2626
{

src/Application/UI/ComponentReflection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
/**
1616
* Helpers for Presenter & Component.
17-
* @property-read string $name
18-
* @property-read string $fileName
17+
* @property-deprecated string $name
18+
* @property-deprecated string $fileName
1919
* @internal
2020
*/
2121
final class ComponentReflection extends \ReflectionClass

src/Application/UI/Presenter.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
/**
2323
* Presenter component represents a webpage instance. It converts Request to Response.
2424
*
25-
* @property-read Nette\Application\Request $request
26-
* @property-read string $action
27-
* @property string $view
28-
* @property string|bool $layout
25+
* @property-deprecated Nette\Application\Request $request
26+
* @property-deprecated string $action
27+
* @property-deprecated string $view
28+
* @property-deprecated string|bool $layout
2929
* @property-read \stdClass $payload
30-
* @property-read Nette\Http\Session $session
31-
* @property-read Nette\Security\User $user
30+
* @property-deprecated Nette\Http\Session $session
31+
* @property-deprecated Nette\Security\User $user
3232
*/
3333
abstract class Presenter extends Control implements Application\IPresenter
3434
{

0 commit comments

Comments
 (0)