Skip to content

Commit

Permalink
Merge branch 'feature/psr4' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
hummer2k committed Apr 20, 2016
2 parents e896ed5 + 60fede3 commit 6059207
Show file tree
Hide file tree
Showing 131 changed files with 9 additions and 26 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"satooshi/php-coveralls": "~0.6"
},
"autoload": {
"psr-0": {
"psr-4": {
"ConLayout\\": "src/",
"ConLayoutTest\\": "tests/"
}
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="./tests/ConLayoutTest/Bootstrap.php" colors="true" verbose="true">
<phpunit bootstrap="./tests/Bootstrap.php" colors="true" verbose="true">
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
Expand Down
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.
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.
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.
26 changes: 5 additions & 21 deletions src/ConLayout/Module.php → src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class Module implements
ServiceProviderInterface,
ViewHelperProviderInterface,
BootstrapListenerInterface,
AutoloaderProviderInterface,
InitProviderInterface,
FilterProviderInterface
{
Expand All @@ -43,8 +42,8 @@ class Module implements
public function getConfig()
{
return array_merge(
include __DIR__ . '/../../config/module.config.php',
include __DIR__ . '/../../config/con-layout.global.php.dist'
include __DIR__ . '/../config/module.config.php',
include __DIR__ . '/../config/con-layout.global.php.dist'
);
}

Expand All @@ -55,7 +54,7 @@ public function getConfig()
*/
public function getViewHelperConfig()
{
return include __DIR__ . '/../../config/viewhelper.config.php';
return include __DIR__ . '/../config/viewhelper.config.php';
}

/**
Expand All @@ -65,7 +64,7 @@ public function getViewHelperConfig()
*/
public function getFilterConfig()
{
return include __DIR__ . '/../../config/filter.config.php';
return include __DIR__ . '/../config/filter.config.php';
}

/**
Expand All @@ -75,7 +74,7 @@ public function getFilterConfig()
*/
public function getServiceConfig()
{
return include __DIR__ . '/../../config/service.config.php';
return include __DIR__ . '/../config/service.config.php';
}

/**
Expand Down Expand Up @@ -137,19 +136,4 @@ private function attachDebugger(ServiceLocatorInterface $serviceManager)
$filterManager = $serviceManager->get('FilterManager');
$renderer->getFilterChain()->attach($filterManager->get(DebugFilter::class));
}

/**
*
* @return array
*/
public function getAutoloaderConfig()
{
return [
StandardAutoloader::class => [
'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.
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.
4 changes: 2 additions & 2 deletions tests/ConLayoutTest/Bootstrap.php → tests/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected static function initServiceManager()
],
'module_listener_options' => array(
'module_paths' => [
dirname(dirname(__DIR__))
dirname(__DIR__)
],
),
);
Expand Down Expand Up @@ -55,7 +55,7 @@ public static function getServiceManager()

protected static function initAutoloader()
{
$vendorPath = __DIR__ . '/../../vendor';
$vendorPath = __DIR__ . '/../vendor';
if (is_readable($vendorPath . '/autoload.php')) {
include $vendorPath . '/autoload.php';
}
Expand Down
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class ModuleTest extends AbstractTest
public function testConfig()
{
$module = new Module();
$this->assertInternalType('array', $module->getAutoloaderConfig());
$this->assertInternalType('array', $module->getConfig());
$this->assertInternalType('array', $module->getServiceConfig());
$this->assertInternalType('array', $module->getFilterConfig());
Expand Down
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.
File renamed without changes.
File renamed without changes.

0 comments on commit 6059207

Please sign in to comment.