mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
Bugfix error call of non-static method
This commit is contained in:
parent
7e96a351d4
commit
562bdb55e7
@ -48,7 +48,7 @@ final class Bootstrap
|
|||||||
*
|
*
|
||||||
* @return SurveyService
|
* @return SurveyService
|
||||||
*/
|
*/
|
||||||
public function onInitSurveyService(ContainerInterface $container): SurveyService
|
public static function onInitSurveyService(ContainerInterface $container): SurveyService
|
||||||
{
|
{
|
||||||
return new SurveyService($container->get('Database'), $container->get('SurveyGateway'));
|
return new SurveyService($container->get('Database'), $container->get('SurveyGateway'));
|
||||||
}
|
}
|
||||||
@ -58,7 +58,7 @@ final class Bootstrap
|
|||||||
*
|
*
|
||||||
* @return SurveyGateway
|
* @return SurveyGateway
|
||||||
*/
|
*/
|
||||||
public function onInitSurveyGateway(ContainerInterface $container): SurveyGateway
|
public static function onInitSurveyGateway(ContainerInterface $container): SurveyGateway
|
||||||
{
|
{
|
||||||
return new SurveyGateway($container->get('Database'));
|
return new SurveyGateway($container->get('Database'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user