Skip to content

Commit 1092c98

Browse files
committed
update php docx
1 parent 321003c commit 1092c98

File tree

6 files changed

+61
-40
lines changed

6 files changed

+61
-40
lines changed

Module.php

Lines changed: 55 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,61 @@
11
<?php
22
/**
3-
* Module Bootstrap
3+
* MIT License
4+
* ===========
45
*
5-
* @package ZfSnippets
6+
* Copyright (c) 2013 Concetto Vecchio <info@cvsolutions.it>
7+
*
8+
* Permission is hereby granted, free of charge, to any person obtaining
9+
* a copy of this software and associated documentation files (the
10+
* "Software"), to deal in the Software without restriction, including
11+
* without limitation the rights to use, copy, modify, merge, publish,
12+
* distribute, sublicense, and/or sell copies of the Software, and to
13+
* permit persons to whom the Software is furnished to do so, subject to
14+
* the following conditions:
15+
*
16+
* The above copyright notice and this permission notice shall be included
17+
* in all copies or substantial portions of the Software.
18+
*
19+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
23+
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25+
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26+
*
27+
* @category ZF2 Modules
28+
* @package ZfSnippets
29+
* @subpackage /
30+
* @author Concetto Vecchio <info@cvsolutions.it>
31+
* @copyright 2013 Concetto Vecchio.
32+
* @license http://www.opensource.org/licenses/mit-license.php MIT License
33+
* @version 1.0
34+
* @link http://www.cvsolutions.it
635
*/
736
namespace ZfSnippets;
837

938
/**
10-
* Module Bootstrap
11-
*
12-
* @package ZfSnippets
13-
*/
39+
* Module
40+
*
41+
* @uses
42+
*
43+
* @category ZF2 Modules
44+
* @package ZfSnippets
45+
* @author Concetto Vecchio <info@cvsolutions.it>
46+
* @license http://www.opensource.org/licenses/mit-license.php MIT License
47+
* @link http://www.cvsolutions.it
48+
*/
1449
class Module
1550
{
1651

52+
/**
53+
* getAutoloaderConfig
54+
*
55+
* @access public
56+
*
57+
* @return mixed Value.
58+
*/
1759
public function getAutoloaderConfig()
1860
{
1961
return array(
@@ -28,19 +70,15 @@ public function getAutoloaderConfig()
2870
);
2971
}
3072

73+
/**
74+
* getConfig
75+
*
76+
* @access public
77+
*
78+
* @return mixed Value.
79+
*/
3180
public function getConfig()
3281
{
3382
return include __DIR__ . '/config/module.config.php';
3483
}
35-
36-
public function getServiceConfig()
37-
{
38-
return array(
39-
'factories' => array(
40-
'db-adapter' => function($sm) {
41-
return $sm->get('db');
42-
},
43-
),
44-
);
45-
}
4684
}

autoload_classmap.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
11
<?php
2-
/**
3-
* Autolader config
4-
*
5-
* @package ZfSnippets
6-
*/
7-
8-
return array();
9-
10-
?>
2+
return array();

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"name" : "Concetto Vecchio",
77
"email" : "info@cvsolutions.it",
88
"homepage" : "http://cvsolutions.it",
9-
"role" : "Developer"
9+
"role" : "PHP Developer"
1010
}
1111
],
1212
"keywords" : [

config/module.config.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
<?php
2-
/**
3-
*
4-
* @package ZfSnippets
5-
*/
62
return array(
73
'controllers' => array(
84
'invokables' => array(
95
'ZfSnippets\Controller\ZfSnippets' => 'ZfSnippets\Controller\ZfSnippetsController',
106
),
117
),
12-
13-
// The following section is new and should be added to your file
148
'router' => array(
159
'routes' => array(
1610
'zfsnippets' => array(
@@ -38,4 +32,3 @@
3832
),
3933
),
4034
);
41-
?>

src/ZfSnippets/Service/Slug.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88
* @category Service
99
* @package ZfSnippets
1010
* @author Concetto Vecchio <info@cvsolutions.it>
11-
* @license New BSD License
12-
* @link
11+
* @license http://www.opensource.org/licenses/mit-license.php MIT License
12+
* @link http://www.cvsolutions.it
1313
*/
1414
class Slug
1515
{
16-
17-
1816
/**
1917
* toAscii
2018
*

src/ZfSnippets/View/Helper/TruncateHtml.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
* @category Helper
1212
* @package ZfSnippets
1313
* @author Concetto Vecchio <info@cvsolutions.it>
14-
* @license New BSD License
15-
* @link
14+
* @license http://www.opensource.org/licenses/mit-license.php MIT License
15+
* @link http://www.cvsolutions.it
1616
*/
1717
class TruncateHtml extends AbstractHelper
1818
{

0 commit comments

Comments
 (0)