Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1acda50

Browse files
committedNov 5, 2018
improved module structure
1 parent 6fd1c83 commit 1acda50

File tree

9 files changed

+36
-48
lines changed

9 files changed

+36
-48
lines changed
 

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*~
22
phpunit.xml
33
vendor
4-
behat.yml
4+
behat.yml
5+
composer.lock

‎.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ after_failure:
6767

6868
after_script:
6969
- 'if [[ $COVERAGE = yes ]]; then
70-
composer require php-coveralls/php-coveralls;
70+
composer require php-coveralls/php-coveralls --no-scripts;
7171
travis_retry ./vendor/bin/php-coveralls -vvv;
7272
wget https://scrutinizer-ci.com/ocular.phar;
7373
travis_retry php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.serialized;

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This module provides import tasks
55

66
Build status:
77

8-
[![Build Status](https://api.travis-ci.org/yawik/SimpleImport.svg)](https://travis-ci.org/yawik/SimpleImport)
8+
[![Build Status](https://api.travis-ci.org/yawik/SimpleImport.svg?branch=master)](https://travis-ci.org/yawik/SimpleImport)
99
[![Coverage Status](https://coveralls.io/repos/github/yawik/SimpleImport/badge.svg?branch=master)](https://coveralls.io/github/yawik/SimpleImport?branch=master)
1010

1111
Requirements

‎behat.yml.dist

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ default:
88
paths: false
99
extensions:
1010
Lakion\Behat\MinkDebugExtension:
11-
directory: build/behat
11+
directory: "%paths.base%/build/behat"
1212
clean_start: true
1313
screenshot: true
1414

@@ -41,6 +41,6 @@ default:
4141
contexts:
4242
- Behat\MinkExtension\Context\MinkContext
4343
- Yawik\Behat\CoreContext:
44-
config: "test/config/config.php"
44+
config: "%paths.base%/test/config/config.php"
4545
- Yawik\Behat\UserContext
4646
- Yawik\Behat\SummaryFormContext

‎build/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
behat/*
2+
!behat/.gitkeep
3+
logs

‎build/behat/.gitkeep

Whitespace-only changes.

‎composer.lock

+25-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/Module.php

+1-18
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* Bootstrap module
2121
*/
22-
class Module implements DependencyIndicatorInterface, ConsoleUsageProviderInterface, ConsoleBannerProviderInterface
22+
class Module implements DependencyIndicatorInterface, ConsoleBannerProviderInterface
2323
{
2424

2525
/**
@@ -41,23 +41,6 @@ public function getModuleDependencies()
4141
return ['Jobs'];
4242
}
4343

44-
/**
45-
* Loads module specific autoloader configuration.
46-
*
47-
* @return array
48-
*/
49-
public function getAutoloaderConfig()
50-
{
51-
return array(
52-
'Zend\Loader\StandardAutoloader' => array(
53-
'namespaces' => array(
54-
__NAMESPACE__ => __DIR__ . '/src/',
55-
__NAMESPACE__ . 'Test' => __DIR__ . '/test/' . __NAMESPACE__ . 'Test',
56-
),
57-
),
58-
);
59-
}
60-
6144
public function getConsoleBanner(Console $console)
6245
{
6346
return __NAMESPACE__ . ' 0.2.1';

‎test/sandbox/config

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../config

0 commit comments

Comments
 (0)
Please sign in to comment.