PHPackages                             highcore/registry-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. highcore/registry-bundle

ActiveLibrary

highcore/registry-bundle
========================

Symfony Registry Bundle with all compiler passes for highcore/registry package.

v2.0.10(1y ago)0126MITPHP

Since Mar 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/highcoreorg/registry-bundle)[ Packagist](https://packagist.org/packages/highcore/registry-bundle)[ RSS](/packages/highcore-registry-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (15)Used By (0)

Symfony Registry Bundle
=======================

[](#symfony-registry-bundle)

**RegistryBundle** is a Symfony bundle that provides a convenient mechanism for working with registries. This package allows you to automatically register services with specific attributes and interfaces in registries.

Installation
------------

[](#installation)

To install this package, use Composer:

```
composer require highcore/registry-bundle
```

Configuration
-------------

[](#configuration)

After installation, add RegistryBundle to your Symfony configuration file (config/bundles.php):

```
return [
    // ...
    Highcore\Bundle\RegistryBundle\RegistryBundle::class => ['all' => true],
];
```

Usage
-----

[](#usage)

### Registering Registries

[](#registering-registries)

Registries are registered in the bundle class using a Compiler Pass. This allows services marked with attributes to be automatically registered in the appropriate registries during the container compilation phase.

Example of Registering a Registry

```
