Skip to content

Commit

Permalink
Remove $onStartup event
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Jul 27, 2018
1 parent 488525b commit 0341786
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"require": {
"php": "^7.1.0",
"arachne/service-collections": "^0.2.0",
"nette/application": "^2.4.0",
"nette/application": "^2.4.11",
"nette/di": "^2.4.10",
"nette/utils": "^2.4.0"
},
Expand Down
14 changes: 0 additions & 14 deletions src/Application/VerifierPresenterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ trait VerifierPresenterTrait
{
use VerifierControlTrait;

/**
* @var callable[]
*/
public $onStartup;

/**
* @var Verifier
*/
Expand Down Expand Up @@ -77,13 +72,4 @@ public function createRequest($component, $destination, array $parameters, $mode
{
return parent::createRequest($component, $destination, $parameters, $mode);
}

/**
* Calls onStartup event which is used to verify presenter properties.
*/
public function startup(): void
{
parent::startup();
$this->onStartup();
}
}

0 comments on commit 0341786

Please sign in to comment.