Skip to content

Commit df42137

Browse files
committed
deprecated magic properties except for $template & $payload (BC break)
1 parent 2cb3f52 commit df42137

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
@@ -15,8 +15,8 @@
1515

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

src/Application/UI/Presenter.php

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

0 commit comments

Comments
 (0)