From bcfd8f36a2da5b474a4add49c4e3fc32418d584a Mon Sep 17 00:00:00 2001
From: gloas <gloas@afi-sa.fr>
Date: Thu, 5 Jan 2017 16:28:43 +0100
Subject: [PATCH] migrate frbrlinktype controller to manager plugin

---
 .../admin/controllers/FrbrLinktypeController.php    | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/application/modules/admin/controllers/FrbrLinktypeController.php b/application/modules/admin/controllers/FrbrLinktypeController.php
index 2a306945fee..9fb86d5684f 100644
--- a/application/modules/admin/controllers/FrbrLinktypeController.php
+++ b/application/modules/admin/controllers/FrbrLinktypeController.php
@@ -20,9 +20,14 @@
  */
 
 class Admin_FrbrLinktypeController extends ZendAfi_Controller_Action {
+
+  public function getPlugins() {
+    return ['ZendAfi_Controller_Plugin_Manager_Manager'];
+  }
+
+
   public function getRessourceDefinitions() {
-    return [
-            'model' => ['class' => 'Class_FRBR_LinkType',
+    return ['model' => ['class' => 'Class_FRBR_LinkType',
                         'name' => 'relation',
                         'order' => 'libelle'],
 
@@ -34,6 +39,4 @@ class Admin_FrbrLinktypeController extends ZendAfi_Controller_Action {
 
             'form' => (new ZendAfi_Form_FRBR_LinkType())];
   }
-}
-
-?>
\ No newline at end of file
+}
\ No newline at end of file
-- 
GitLab