1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 07:35:29 +02:00

[ticket/11768] Removed get_parser() / get_renderer() accessors

There's no need to access the s9e\TextFormatter objects outside of events.

PHPBB3-11768
This commit is contained in:
JoshyPHP 2015-03-25 01:13:31 +01:00
parent 37fedc656f
commit 2a462bb7e4
4 changed files with 0 additions and 34 deletions

View File

@ -190,16 +190,6 @@ class parser implements \phpbb\textformatter\parser_interface
return array_unique($errors); return array_unique($errors);
} }
/**
* Return the instance of s9e\TextFormatter\Parser used by this object
*
* @return \s9e\TextFormatter\Parser
*/
public function get_parser()
{
return $this->parser;
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */

View File

@ -146,16 +146,6 @@ class renderer implements \phpbb\textformatter\renderer_interface
$this->renderer->setParameter('STYLE_ID', $user->style['style_id']); $this->renderer->setParameter('STYLE_ID', $user->style['style_id']);
} }
/**
* Return the instance of s9e\TextFormatter\Renderer used by this object
*
* @return \s9e\TextFormatter\Renderer
*/
public function get_renderer()
{
return $this->renderer;
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */

View File

@ -167,11 +167,4 @@ class phpbb_textformatter_s9e_parser_test extends phpbb_test_case
) )
); );
} }
public function test_get_parser()
{
$container = $this->get_test_case_helpers()->set_s9e_services();
$parser = $container->get('text_formatter.parser');
$this->assertInstanceOf('s9e\\TextFormatter\\Parser', $parser->get_parser());
}
} }

View File

@ -354,11 +354,4 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case
); );
} }
} }
public function test_get_renderer()
{
$container = $this->get_test_case_helpers()->set_s9e_services();
$renderer = $container->get('text_formatter.renderer');
$this->assertInstanceOf('s9e\\TextFormatter\\Renderer', $renderer->get_renderer());
}
} }