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

2.1.0

Homepage
https://github.com/digital-competence/DigiComp.FlowObjectResolving
Version
2.1.0
Type
neos-package
Release Date
Oct 26, 2023 17:58
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
dabe4e5cbce69fa7cab09ca1abd46958e639d54e

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).