harbor run -t openthoughts/tasktrove-exp-rpt-stack-php-v2-v6-stack-php-0226harbor download openthoughts/tasktrove-exp-rpt-stack-php-v2-v6-stack-php-0226Task: Implement a pluggable File Writer container and a minimal writer to satisfy the tests
Goal Create a small plugin system under /app/ that allows registering, instantiating, and retrieving writer implementations by type. The system must support direct method calls and array-access syntax as tested, and it must provide specific runtime exceptions for error cases. An example writer (Txt) must exist and be usable by the container.
What to implement
Create TS\Writer\FileWriterContainer
Constructor: __construct(\Symfony\Component\EventDispatcher\EventDispatcher $dispatcher)
Internal registry
Optional per-test access
Core methods
ArrayAccess implementation
File structure to add under /app/
Assumptions and environment
Deliverables