This repository was archived by the owner on Nov 28, 2022. It is now read-only.
Releases: j6s/phparch
Releases · j6s/phparch
3.1.1
3.1.0
3.0.0
2.0.1
2.0.0
1.2.0
1.1.2
1.1.1
1.1.0
Added
- A new
MustOnlyHaveAutoloadableDependenciesvalidator has been added in order to prevent accidental dependencies
to unrelated packages that just happen to be used in the same system often.- All components in architectures are now being checked against this new validator.
- A new
MustOnlyDependOnComposerDependenciesvalidator has been added in order to prevent accidentally using
namespaces that are not also declared incomposer.json. - A new
ExplicitlyAllowDependencyvalidator allows explicitly allowing dependencies from one component to another. - Architectures now have a bunch of new helper methods
mustOnlyDependOnComposerDependenciesaddsMustOnlyDependOnComposerDependenciesvalidator.addComposerBasedComponentinitializes a full component from the givencomposer.jsonfile and
adds aMustOnlyDependOnComposerDependenciesvalidatorisAllowedToDependOnallows dependencies from one component to another one.disallowInterdependencemakes it easy to disallow dependence between many different components.mustNotDependOnAnyOtherComponentmakes it easy to declare core components that should not depend on
anything else that is architecturally significant.
Removed
- Support for PHP 7.1 was dropped
1.0.0
[1.0.0] - 2019-02-18
Added
- Allowing dependencies to Interfaces only is now possible
- Using the
AllowInterfacesValidation wrapper - Using the
mustNotDependOnmethod on a component - Using the
mustNotDirectlyDependOnmethod on an architecture
- Using the
- Bulk declaration of components using the
Architecture->componentsmethod is now possible
Fixed
- Dependencies of anonymous / inner classes are now correctly tracked