Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/hotfix/psr-4' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
hummer2k committed Dec 26, 2019
2 parents 0145583 + aacd025 commit 26530cc
Show file tree
Hide file tree
Showing 27 changed files with 11 additions and 28 deletions.
3 changes: 0 additions & 3 deletions Module.php

This file was deleted.

7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@
"hummer2k/conlayout": "To use ESI processing feature."
},
"autoload": {
"psr-0": {
"psr-4": {
"ConVarnish\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ConVarnishTest\\": "tests/"
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 5 additions & 22 deletions src/ConVarnish/Module.php → src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
class Module implements
ConfigProviderInterface,
ServiceProviderInterface,
BootstrapListenerInterface,
AutoloaderProviderInterface
BootstrapListenerInterface
{
/**
* retrieve module config
Expand All @@ -32,8 +31,8 @@ class Module implements
public function getConfig()
{
return array_merge(
include __DIR__ . '/../../config/module.config.php',
include __DIR__ . '/../../config/con-varnish.global.php.dist'
include __DIR__ . '/../config/module.config.php',
include __DIR__ . '/../config/con-varnish.global.php.dist'
);
}

Expand All @@ -43,11 +42,12 @@ public function getConfig()
*/
public function getServiceConfig()
{
return include __DIR__ . '/../../config/service.config.php';
return include __DIR__ . '/../config/service.config.php';
}

/**
* @param EventInterface $e
* @return array|void
*/
public function onBootstrap(EventInterface $e)
{
Expand All @@ -74,22 +74,5 @@ public function onBootstrap(EventInterface $e)
foreach ($cachingStrategies as $cachingStrategy => $priority) {
$serviceManager->get($cachingStrategy)->attach($eventManager, $priority);
}

}

/**
* retrieve autoloader config
*
* @return array
*/
public function getAutoloaderConfig()
{
return [
'Zend\Loader\StandardAutoloader' => [
'namespaces' => [
__NAMESPACE__ => __DIR__
],
],
];
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ public function testInjectEsi()
InjectCacheHeaderListener::ESI_TEMPLATE,
$block->getTemplate()
);

}

public function testStrategyPriorities()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public function setUp()

public function testGetConfigs()
{
$this->assertInternalType('array', $this->module->getAutoloaderConfig());
$this->assertInternalType('array', $this->module->getConfig());
$this->assertInternalType('array', $this->module->getServiceConfig());
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 26530cc

Please sign in to comment.