digicomp/flowobjectresolving

Last activity 21 Dec 2023 2 86
composer require digicomp/flowobjectresolving

Helper trait offering an easy and standard way to resolve service classes with nice names

dev-develop

Homepage
https://github.com/digital-competence/DigiComp.FlowObjectResolving
Version
dev-develop
Type
neos-package
Release Date
Oct 26, 2023 17:59
Source
git
Distribution
zip
Requires
  • neos/flow: ^5.3 | ^6.0 | ^7.0 | ^8.0
  • php: ^7.2 | ^8.0
MIT
  • #dependency injection
  • #flow
  • #neos
f5b7aaaeb3a947f497e4b6ab8857f4e5aec850a3

Readme excerpt

DigiComp.FlowObjectResolving

This package is here to help your DI to resolve nice human readable names to class names, to the class names which, should be used.

Additionally, it allows you to get a list of all those nice names, so you could list them from a CommandController, if you want to.

class DefaultResolver { use ResolverTrait; protected static function getManagedInterface(): string { return RequestPatternInterface::class; } protected static function getManagedNamespace(): string { return 'Security\\RequestPattern\\'; } }

This class would for example list the following with a simple getAvailableNames:

['Neos.…
Read more
The content of the readme is provided by an external source, which we have no control over. Check out the actual readme at its source.
The same vendor provides 9 package(s).