Skip to content

Reference

phil/trash-bundle
TypeKindRole
PhilTrashBundlefinal class, AbstractBundleAlias phil_trash; the configuration, the mapping, the services; HANDLER_TAG
Domain\Model\TrashItementityA resource in the trash
Phil\Resource\ResourceReferencefinal readonly class, from phil/resourceA kind and an identifier
Domain\Exception\TrashExceptioninterfaceEverything the trash throws
Domain\Exception\InvalidTrashItem, ParentMissing, UnknownResourceexceptionsA bad item; a parent gone; no handler
Domain\Repository\TrashItemRepositoryinterfaceThe port
Application\Trashfinal readonly classTrash, restore, purge
Application\TrashHandlerinterfaceHow one kind goes and comes back
Application\Capturedfinal readonly classWhat a handler keeps
Application\Event\ResourceTrashed, ResourceRestored, TrashItemPurgedeventsEach step
Infrastructure\Doctrine\DoctrineTrashItemRepositoryrepositoryThe port on Doctrine ORM
Infrastructure\Console\PurgeTrashCommandconsole commandphil:trash:purge