You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HI,
I was trying to use the method named getTwillErrorView available in twill exceptionHandler. I overrided the handler with my handler and found that there's a bug in the file viewFactory is being instantiated as responsefactory in constructor and hance throwing error of '_
exists method doesnot exist in ResponseFactory class
_'.
Here is the constructor of twill handler :
public function __construct(
Container $container,
Redirector $redirector,
UrlGenerator $urlGenerator,
ResponseFactory $responseFactory,
Config $config,
ViewFactory $viewFactory
) {
parent::__construct($container);
Also i want to confirm if there's any other way to utilize other than overriding as what's the use of providing that method if its not being used or invoked anywhere in twill.
This discussion was converted from issue #635 on May 11, 2021 23:02.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
HI,
I was trying to use the method named getTwillErrorView available in twill exceptionHandler. I overrided the handler with my handler and found that there's a bug in the file viewFactory is being instantiated as responsefactory in constructor and hance throwing error of '_
_'.
Here is the constructor of twill handler :
public function __construct(
Container $container,
Redirector $redirector,
UrlGenerator $urlGenerator,
ResponseFactory $responseFactory,
Config $config,
ViewFactory $viewFactory
) {
parent::__construct($container);
Also i want to confirm if there's any other way to utilize other than overriding as what's the use of providing that method if its not being used or invoked anywhere in twill.
Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions