Skip to content

Commit 56e9d45

Browse files
committed
Component, Form: deprecated hasPresenter()
1 parent 5868278 commit 56e9d45

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/Application/UI/Component.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ public function getPresenterIfExists(): ?Presenter
5555
}
5656

5757

58-
/**
59-
* Returns whether there is a presenter.
60-
*/
58+
/** @deprecated */
6159
public function hasPresenter(): bool
6260
{
6361
return (bool) $this->lookup(Presenter::class, false);

src/Application/UI/Form.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ final public function getPresenterIfExists(): ?Presenter
8181
}
8282

8383

84-
/**
85-
* Returns whether there is a presenter.
86-
*/
84+
/** @deprecated */
8785
public function hasPresenter(): bool
8886
{
8987
return (bool) $this->lookup(Presenter::class, false);

src/Application/UI/Presenter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ final public function getPresenterIfExists(): self
163163
}
164164

165165

166+
/** @deprecated */
166167
final public function hasPresenter(): bool
167168
{
168169
return true;

0 commit comments

Comments
 (0)