diff --git a/src/ZfcDatagrid/Renderer/BootstrapTable/View/Helper/TableRowFactory.php b/src/ZfcDatagrid/Renderer/BootstrapTable/View/Helper/TableRowFactory.php index 07b42255..a086538e 100644 --- a/src/ZfcDatagrid/Renderer/BootstrapTable/View/Helper/TableRowFactory.php +++ b/src/ZfcDatagrid/Renderer/BootstrapTable/View/Helper/TableRowFactory.php @@ -1,21 +1,22 @@ has('translator')) { + if ($serviceLocator->getServiceLocator()->has('translator')) { /** @noinspection PhpParamsInspection */ - $tableRow->setTranslator($serviceLocator->get('translator')); + $tableRow->setTranslator($serviceLocator->getServiceLocator()->get('translator')); } return $tableRow; diff --git a/src/ZfcDatagrid/Renderer/JqGrid/View/Helper/ColumnsFactory.php b/src/ZfcDatagrid/Renderer/JqGrid/View/Helper/ColumnsFactory.php index 7e728f54..c5ca7242 100644 --- a/src/ZfcDatagrid/Renderer/JqGrid/View/Helper/ColumnsFactory.php +++ b/src/ZfcDatagrid/Renderer/JqGrid/View/Helper/ColumnsFactory.php @@ -1,21 +1,22 @@ has('translator')) { + if ($serviceLocator->getServiceLocator()->has('translator')) { /** @noinspection PhpParamsInspection */ - $tableRow->setTranslator($serviceLocator->get('translator')); + $tableRow->setTranslator($serviceLocator->getServiceLocator()->get('translator')); } return $tableRow;