[TYPO3-english] XClassing again
Philipp Gampe
philipp.gampe at typo3.org
Fri Mar 29 11:23:30 CET 2013
Hi Tomasz Krawczyk,
Tomasz Krawczyk wrote:
> but this leads to an Exception: "#1: PHP Catchable Fatal Error: Argument
> 1 passed to ux_LocalPreviewHelper::__construct() must be an instance of
> LocalImageProcessor, instance of
> TYPO3\CMS\Core\Resource\Processing\LocalImageProcessor given in
> D:
\wamp\www\mysite.local\typo3conf\ext\imagickimg\Classes\Xclass\LocalPreviewHelper.php
> line 37 "
>
> This is how beginning of my ux_LocalPreviewHelper looks:
...
> public function __construct(LocalImageProcessor $processor) {
> parent::__construct($processor);
It must be at least
__construct(Resource\Processing\LocalImageProcessor $processor) {
According to your use statement.
The error message says it all ;)
Best regards
--
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Documentation – linkvalidator
TYPO3 .... inspiring people to share!
More information about the TYPO3-english
mailing list