Skip to content

Alternate Proposal for 0.2.x #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 32 commits into
base: 0.3.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5da7fcc
Replaced exception interfaces with concretes
mecha Nov 14, 2019
ceb0e24
Module throws specific exceptions
mecha Nov 14, 2019
313449f
Added factories
mecha Nov 14, 2019
ea61d8c
Updated PHPStorm config for PHPUnit
mecha Nov 14, 2019
b2dd05d
Added description of `FactoryInterface` to readme
mecha Nov 14, 2019
4192ea3
Added return type hint for `getDependencies()`
mecha Nov 14, 2019
e60ba21
Added missing test for `Value`
mecha Nov 14, 2019
e8d6a80
Added `Extension` factory
mecha Nov 15, 2019
d69654e
Added `Alias` factory
mecha Nov 15, 2019
9028ad2
Added `InterpolatedString` factory
mecha Nov 15, 2019
e638240
Added `GlobalVar` factory
mecha Nov 15, 2019
17dc745
Renamed and optimized `InterpolatedString`
mecha Nov 15, 2019
772afd6
Corrected use of double quotes for param default
mecha Nov 15, 2019
26af8d0
Updated dependencies and fixed project config
mecha Feb 10, 2020
ac1fbde
Fixed PHPUnit config
mecha Feb 10, 2020
f7cf001
Reworked interfaces and exceptions
mecha Feb 10, 2020
389ffb8
Updated implementations and tests after rework
mecha Feb 10, 2020
06f8a2d
Added `ArrayExtension` implementation
mecha Feb 10, 2020
209b759
Removed void return for 7.0 compatibility
mecha Feb 11, 2020
9f4f3e6
Added `ServiceInterface::withDependencies`
mecha Feb 11, 2020
39f8623
Invocation args are passed to callbacks
mecha Feb 12, 2020
22fc398
Renamed `Invocable` to `Func`
mecha Feb 12, 2020
5159614
Removed exceptions
mecha Feb 12, 2020
875bee2
Removed unused test helper trait
mecha Feb 12, 2020
0aa2ccb
Removed useless interface tests
mecha Feb 12, 2020
589da5b
Added `ModularInterface`
mecha Feb 12, 2020
d7c717a
Removed useless assertions
mecha Feb 12, 2020
635cb04
Updated dependencies
mecha Feb 12, 2020
ad4f440
Added `PrefixingModule` decorator
mecha Feb 12, 2020
687b682
Added `ModularModule`
mecha Feb 12, 2020
cdf8a6e
Changed namespaces to `Mecha` vendor
mecha Feb 12, 2020
ea5eb13
Removed shit from the repo
mecha Feb 12, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env.example

This file was deleted.

8 changes: 4 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
test export-ignore
.idea export-ignore
nbproject export-ignore
test export-ignore
.codeclimate.yml export-ignore
.php_cs export-ignore
.travis.yml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
composer.lock export-ignore
.travis.yml export-ignore
phpunit.xml export-ignore
composer.lock export-ignore
14 changes: 3 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
/vendor/
/nbproject/private/
/.idea/
/nbproject/
/test/coverage/
/test/log/
/build/
/.idea/dictionaries/
/.idea/workspace.xml
/.idea/tasks.xml
/.idea/deployment.xml
/.idea/vagrant.xml
/.idea/misc.xml
/.idea/inspectionProfiles/
/.env
/vendor/
5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

61 changes: 0 additions & 61 deletions .idea/module-interface.iml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

14 changes: 0 additions & 14 deletions .idea/php-test-framework.xml

This file was deleted.

169 changes: 0 additions & 169 deletions .idea/php.xml

This file was deleted.

16 changes: 0 additions & 16 deletions .idea/remote-mappings.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

27 changes: 0 additions & 27 deletions .php_cs

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ This package contains interfaces that are useful in describing modules and their
- [`ModuleInterface`][] - The interface for a module. A module is an object that represents an
application fragment. Modules are prepared using `setup()`, which returns a `ServiceProviderInterface` instance that
the application may consume, and invoked using `run()`.
- [`FactoryInterface`][] - The interface for a service factory. Implementations of this interface can be used instead
of anonymous functions when defining service providers. Implementations can provide generic service definition logic,
reducing code repetition, as well as allow for static analysis on modules by exposing the keys of dependent services.

### Requirements
- PHP: <= 7.0 | < 7.4
Expand All @@ -23,3 +26,4 @@ the application may consume, and invoked using `run()`.
[Dhii]: https://github.com/Dhii/dhii

[`ModuleInterface`]: src/ModuleInterface.php
[`FactoryInterface`]: src/FactoryInterface.php
Loading