You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extension uses the class \Crossmedia\Fourallportal\Response\CollectingResponse handle the output in CLI and backend context.
The class itself is an inheritance of \Symfony\Component\Console\Command\Command which does not makes sense, since it is not an command and used only to collect message data.
The class should implement the interface \TYPO3\CMS\Core\Collection\CollectionInterface and remove the dependency to \Symfony\Component\Console\Command\Command.
Additionally, a method add(string ...$line): void should be added and replace the method setDescription(string $description).
The output within a command or controller can be done by walking threw the Collection.
Implementing the interface \Stringable would allow to concat the lines into a single string.
The text was updated successfully, but these errors were encountered:
The extension uses the class
\Crossmedia\Fourallportal\Response\CollectingResponse
handle the output in CLI and backend context.The class itself is an inheritance of
\Symfony\Component\Console\Command\Command
which does not makes sense, since it is not an command and used only to collect message data.The class should implement the interface
\TYPO3\CMS\Core\Collection\CollectionInterface
and remove the dependency to\Symfony\Component\Console\Command\Command
.Additionally, a method
add(string ...$line): void
should be added and replace the methodsetDescription(string $description)
.The output within a command or controller can be done by walking threw the Collection.
Implementing the interface
\Stringable
would allow to concat the lines into a single string.The text was updated successfully, but these errors were encountered: