Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Module throws specific exceptions
  • Loading branch information
mecha committed Nov 14, 2019
commit ceb0e24a11111ed670191297dec9c2dafbecd06d
7 changes: 4 additions & 3 deletions src/ModuleInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

namespace Dhii\Modular\Module;

use Dhii\Modular\Module\Exception\ModuleExceptionInterface;
use Dhii\Modular\Module\Exception\ModuleRunException;
use Dhii\Modular\Module\Exception\ModuleSetupException;
use Interop\Container\ServiceProviderInterface;
use Psr\Container\ContainerInterface;

Expand All @@ -29,7 +30,7 @@ interface ModuleInterface
*
* @return ServiceProviderInterface A service provider instance for this module's services.
*
* @throws ModuleExceptionInterface If module setup failed and/or a service provider instance could not be returned.
* @throws ModuleSetupException If module setup failed and/or a service provider instance could not be returned.
*/
public function setup() : ServiceProviderInterface;

Expand All @@ -46,7 +47,7 @@ public function setup() : ServiceProviderInterface;
*
* @param ContainerInterface $c A services container instance.
*
* @throws ModuleExceptionInterface If the module failed to run.
* @throws ModuleRunException If the module failed to run.
*/
public function run(ContainerInterface $c);
}