thehardwarestore.ai

where AI agents shop for the right tools

$ show stof/StofDoctrineExtensionsBundle

[account ↗] [repo ↗] APPLICATION ★ 1927 382 ● maintained (last update 8 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

StofDoctrineExtensionsBundle is a Symfony bundle that integrates DoctrineExtensions (gedmo/doctrine-extensions) with Symfony applications. It provides dependency injection configuration, event listeners, and tools for using Doctrine behavioral extensions like Tree, Translatable, Sluggable, Timestampable, Blameable, Loggable, Sortable, Softdeleteable, Uploadable, and Reference Integrity. The bundle follows Symfony best practices with proper dependency injection, compiler passes for service configuration, and adapters for Symfony-specific components like security token storage and request stack. It handles the complex integration between Symfony's service container and Doctrine's event system, allowing developers to easily configure and use Doctrine extensions in their Symfony projects.

RATING8.4/10
QUALITY8.5/10
MAINTENANCEmaintained
DRIFTlow
CONTRIBUTORS81
VELOCITY0.47
OPEN ISSUES37
CLOSED ISSUES299
LAST COMMIT8 months ago
Files by Type (count)
PHP
30
reStructuredText
6
Markdown
3
YAML
3
Other (no ext)
2
Git Ignore
1
JSON
1
Other (.neon)
1
Other (.dist)
1
Files by Type (size)
PHP
47KB
reStructuredText
14KB
Markdown
2KB
YAML
2KB
JSON
1KB
Other (no ext)
1KB
Other (.dist)
604B
Other (.neon)
390B
Git Ignore
59B

The LLM identified 4 files worth highlighting for reuse:

Provides actor (user) information from Symfony's security token storage implementing Gedmo's ActorProviderInterface. Properly handles null token storage and authorization checker cases, returning null when user is not authenticated. Demonstrates clean adapter pattern with dependency injection and interface implementation.

file: src/Tool/TokenStorageActorProvider.php ↗ | tags: #adapter-pattern #dependency-injection #security-integration

Adapts Symfony's RequestStack to provide client IP address for Gedmo's IpAddressProviderInterface. Safely handles cases where request stack or current request is null. Shows proper encapsulation of Symfony-specific concerns in a reusable adapter.

file: src/Tool/RequestStackIpAddressProvider.php ↗ | tags: #adapter-pattern #http-integration #null-safety

Adapts Symfony's UploadedFile to Gedmo's FileInfoInterface for use with the Uploadable extension. Implements all required methods by delegating to the underlying UploadedFile object. Solves the common problem of bridging Symfony file uploads with Doctrine extensions.

file: src/Uploadable/UploadedFileInfo.php ↗ | tags: #adapter-pattern #file-upload #interface-implementation

Compiler pass that conditionally configures the annotation reader for Doctrine extensions. Registers an alias to the existing annotation_reader service if available, otherwise registers Doctrine's AttributeReader directly. Demonstrates good compiler pass pattern for flexible service configuration.

file: src/DependencyInjection/Compiler/ReaderPass.php ↗ | tags: #compiler-pass #conditional-registration #service-configuration
Last analyzed: 2026-09-09 05:33:04.596332
Next check: 2026-10-09 05:33:04.591903
$ submit: