Skip to content

Update to match the latest Symfony2 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
3 commits merged into from
Mar 5, 2011
Merged

Update to match the latest Symfony2 #1

3 commits merged into from
Mar 5, 2011

Conversation

haswalt
Copy link
Contributor

@haswalt haswalt commented Mar 5, 2011

Some small refactoring to work with the latest Symfony2

  • Refactor config load method name to match abstract
  • Rename alias to match Symfony convention and update container requests to match

haswalt added 2 commits March 4, 2011 17:21
- Renaming configLoad to work with latest symfony.
 - Change alias name to fit prefered format and updating configs to match
@haswalt
Copy link
Contributor Author

haswalt commented Mar 5, 2011

Additional fix for console task to fix duplicate option.

videlalvaro pushed a commit that referenced this pull request Mar 20, 2014
skafandri pushed a commit that referenced this pull request May 26, 2017
Sometimes your connection information may need to be dynamic. Dynamic connection parameters allow you to supply or
override parameters programmatically through a service.

e.g. In a scenario when the `vhost` parameter of the connection depends on the current tenant of your white-labeled
application and you do not want (or can't) change it's configuration every time.

Define a service under `connection_parameters_provider` that implements the `ConnectionParametersProviderInterface`,
and add it to the appropriate `connections` configuration.

```yaml
connections:
    default:
        host:     'localhost'
        port:     5672
        user:     'guest'
        password: 'guest'
        vhost:    'foo' # to be dynamically overridden by `connection_parameters_provider`
        connection_parameters_provider: connection_parameters_provider_service
```

Example Implementation:

```php
class ConnectionParametersProviderService implements ConnectionParametersProvider {
    ...
    public function getConnectionParameters() {
        return array('vhost' => $this->getVhost());
    }
    ...
}
```

In this case, the `vhost` parameter will be overridden by the output of `getVhost()`.
mihaileu referenced this pull request in mihaileu/RabbitMqBundle Dec 6, 2019
* Fixed Exception being thrown as EventDispatcherInterface::dispatch() has changed its signature
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant