Skip to content

Commit

Permalink
Nette\ComponentModel\Component::__construct() argument $parent is dep…
Browse files Browse the repository at this point in the history
…recated, use $parent->addComponent() instead.
  • Loading branch information
venca-x committed Oct 27, 2017
1 parent e0722c4 commit da8ae0d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/AbstractBootstrapRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ abstract class AbstractBootstrapRenderer extends Control
private $maximalPagesCount = 10;


/**
* AbstractBootstrapRenderer constructor.
* @param $parent
* @param $componentName
*/
public function __construct($parent = null, $componentName = null)
{
if ($parent != null && $componentName != null) {
$parent->addComponent($this, $componentName);
}
}


public function getPaginator(): Nette\Utils\Paginator
{
if (!$this->paginator) {
Expand Down

0 comments on commit da8ae0d

Please sign in to comment.