Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commite7f08d6

Browse files
committed
Move Module class intosrc directory.
1 parent93c72ef commite7f08d6

File tree

3 files changed

+40
-45
lines changed

3 files changed

+40
-45
lines changed

‎Module.php‎

Lines changed: 0 additions & 41 deletions
This file was deleted.

‎composer.json‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@
4141
"autoload": {
4242
"psr-4": {
4343
"ZF\\HttpCache\\":"src/"
44-
},
45-
"classmap": [
46-
"Module.php"
47-
]
44+
}
4845
},
4946
"autoload-dev": {
5047
"psr-4": {

‎src/Module.php‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
/**
3+
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
4+
* @copyright Copyright (c) 2015-2016 Zend Technologies USA Inc. (http://www.zend.com)
5+
*/
6+
7+
namespaceZF\HttpCache;
8+
9+
useZend\Mvc\MvcEvent;
10+
11+
class Module
12+
{
13+
/**
14+
* Provide configuration for this module.
15+
*
16+
* @return array
17+
*/
18+
publicfunctiongetConfig()
19+
{
20+
returninclude__DIR__ .'/../config/module.config.php';
21+
}
22+
23+
/**
24+
* Listen to bootstrap event.
25+
*
26+
* Attaches the HttpCacheListener to the application event manager.
27+
*
28+
* @param MvcEvent $e
29+
* @return void
30+
*/
31+
publicfunctiononBootstrap(MvcEvent$e)
32+
{
33+
$app =$e->getApplication();
34+
$em =$app->getEventManager();
35+
$sm =$app->getServiceManager();
36+
37+
$sm->get(HttpCacheListener::class)->attach($em);
38+
}
39+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp