mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-30 10:18:42 +00:00
Fixing return type and head access
This commit is contained in:
parent
7fea385501
commit
c1c50bc0d2
|
|
@ -93,7 +93,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
*/
|
||||
public function setUpEditorEditor(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
||||
{
|
||||
$head = $response->getHead();
|
||||
$head = $response->get('Content')->getData('head');
|
||||
$head->addAsset(AssetType::JS, $request->getUri()->getBase() . 'Modules/Editor/ModuleEditor.js');
|
||||
}
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
* @param ResponseAbstract $response Response
|
||||
* @param mixed $data Generic data
|
||||
*
|
||||
* @return RenderableInterface
|
||||
* @return \Serializable
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
|
|
@ -121,7 +121,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
* @param ResponseAbstract $response Response
|
||||
* @param mixed $data Generic data
|
||||
*
|
||||
* @return RenderableInterface
|
||||
* @return \Serializable
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user