mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 13:24:41 +03:00
Move protected AbstractController::getStyle method to the end of the class
This commit is contained in:
parent
5ee217accb
commit
09c7b15656
@ -173,24 +173,6 @@ abstract class AbstractController implements
|
||||
return $this->getStyle()->render($template, $parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns style object related with the controller.
|
||||
*
|
||||
* The method can be overridden in child classes to implement style choosing
|
||||
* logic.
|
||||
*
|
||||
* @return StyleInterface
|
||||
* @todo Update the method after rewriting style choosing logic
|
||||
*/
|
||||
protected function getStyle()
|
||||
{
|
||||
if (is_null($this->style)) {
|
||||
$this->style = $this->prepareStyle(new PageStyle(PageStyle::getDefaultStyle()));
|
||||
}
|
||||
|
||||
return $this->style;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current operator.
|
||||
*
|
||||
@ -216,6 +198,24 @@ abstract class AbstractController implements
|
||||
->generate($relative_path, $reference_type);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns style object related with the controller.
|
||||
*
|
||||
* The method can be overridden in child classes to implement style choosing
|
||||
* logic.
|
||||
*
|
||||
* @return StyleInterface
|
||||
* @todo Update the method after rewriting style choosing logic
|
||||
*/
|
||||
protected function getStyle()
|
||||
{
|
||||
if (is_null($this->style)) {
|
||||
$this->style = $this->prepareStyle(new PageStyle(PageStyle::getDefaultStyle()));
|
||||
}
|
||||
|
||||
return $this->style;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepares a style right after creation.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user