Skip to content

Commit 2a7a997

Browse files
committed
fixup! Fix deprecated Component::monitor() usage
1 parent 4dc9298 commit 2a7a997

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Replicator/Container.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class Container extends Nette\Forms\Container
6666
*/
6767
public function __construct(callable $factory, int $createDefault = 0, bool $forceDefault = FALSE)
6868
{
69-
$this->monitor(Nette\Forms\Form::class, $this->attached(...));
70-
$this->monitor(Nette\Application\UI\Presenter::class, $this->attached(...));
69+
$this->monitor(Nette\Forms\Form::class, $this->componentAttached(...));
70+
$this->monitor(Nette\Application\UI\Presenter::class, $this->componentAttached(...));
7171

7272
try {
7373
$this->factoryCallback = Closure::fromCallable($factory);
@@ -92,7 +92,7 @@ public function setFactory(callable $factory): void
9292
/**
9393
* Magical component factory
9494
*/
95-
protected function attached(Nette\ComponentModel\IComponent $obj): void
95+
private function componentAttached(Nette\ComponentModel\IComponent $obj): void
9696
{
9797
if (
9898
!$obj instanceof Nette\Application\UI\Presenter

0 commit comments

Comments
 (0)