6
6
* Time: 1:49 PM
7
7
*/
8
8
9
- namespace Darryldecode \Backend \Components \MediaManager ;
9
+ namespace Darryldecode \Backend \Components \Media ;
10
10
11
11
use Darryldecode \Backend \Base \Registrar \ComponentInterface ;
12
12
use Darryldecode \Backend \Base \Registrar \ComponentNavigation ;
@@ -22,8 +22,8 @@ class Component implements ComponentInterface {
22
22
public function getComponentInfo ()
23
23
{
24
24
return array (
25
- 'name ' => 'Media Manager ' ,
26
- 'description ' => 'A simple media manager to manage you files ' ,
25
+ 'name ' => 'Media ' ,
26
+ 'description ' => 'A simple media component to manage your files ' ,
27
27
);
28
28
}
29
29
@@ -39,12 +39,7 @@ public function getAvailablePermissions()
39
39
'title ' => 'Manage Media ' ,
40
40
'description ' => 'Enable \'s the user to manage media. This includes access, uploads and modification capabilities ' ,
41
41
'permission ' => 'media.manage ' ,
42
- ),
43
- array (
44
- 'title ' => 'Delete A Media ' ,
45
- 'description ' => 'Gives the user authorization to perform delete action in Media Manager, this includes deleting a folder/file. ' ,
46
- 'permission ' => 'media.delete ' ,
47
- ),
42
+ )
48
43
);
49
44
50
45
return $ availablePermissions ;
@@ -57,7 +52,7 @@ public function getAvailablePermissions()
57
52
*/
58
53
public function getNavigation ()
59
54
{
60
- $ mediaManager = new ComponentNavigation ('Media Manager ' ,'fa fa-files-o ' ,url (config ('backend.backend.base_url ' ).'/media_manager ' ));
55
+ $ mediaManager = new ComponentNavigation ('Media ' ,'fa fa-files-o ' ,url (config ('backend.backend.base_url ' ).'/media ' ));
61
56
$ mediaManager ->setRequiredPermissions (['media.manage ' ]);
62
57
63
58
$ navCollection = new ComponentNavigationCollection ();
@@ -75,7 +70,7 @@ public function getViewsPath()
75
70
{
76
71
return array (
77
72
'dir ' => __DIR__ .'/Views ' ,
78
- 'namespace ' => 'mediaManager ' ,
73
+ 'namespace ' => 'media ' ,
79
74
);
80
75
}
81
76
@@ -88,7 +83,7 @@ public function getRoutesControl()
88
83
{
89
84
return array (
90
85
'dir ' => __DIR__ .'/routes.php ' ,
91
- 'namespace ' => 'Darryldecode \\Backend \\Components \\MediaManager \\Controllers ' ,
86
+ 'namespace ' => 'Darryldecode \\Backend \\Components \\Media \\Controllers ' ,
92
87
);
93
88
}
94
89
0 commit comments