*/
protected $linkRenderer = null;
- function __construct() {
+ public function __construct() {
parent::__construct( 'Categories' );
// Since we don't control the constructor parameters, we can't inject services that way.
}
}
- function execute( $par ) {
+ public function execute( $par ) {
$this->initServices();
$this->setHeaders();
* @param string $from
* @param PageLinkRenderer $linkRenderer
*/
- function __construct( IContextSource $context, $from, PageLinkRenderer $linkRenderer
+ public function __construct( IContextSource $context, $from, PageLinkRenderer $linkRenderer
) {
parent::__construct( $context );
$from = str_replace( ' ', '_', $from );