How to add dependency to existing Castle Windsor registration?
<p>We have a bunch of controllers we register with Castle via a BasedOn query.  One of these controllers we would like to add an extra configuration dependency on.  It is possible that we could register that parameter with all controllers.  The following code is how we worked around the problem, but I would like to know if there is a more elegant/built in solution.</p>

<pre><code>public class ControllersInstaller : IWindsorInstaller
{
    private readonly IAppConfig _appConfig = new AppConfig();
    public void Install(IWindsorContainer container, IConfigurationStore store)
    {
        container.Register(FindControllers().Configure(ConfigureComponentRegistration).LifestyleTransient());

        container.Register(Component.For&lt;BarController&gt;()
            .LifestyleTransient()
            .DependsOn(Dependency.OnValue("faxNumber", 
            _appConfig.GetAppSetting&lt;string&gt;("FaxNumber"))));
    }

    private void ConfigureComponentRegistration(ComponentRegistration obj)
    {
        obj.LifestyleTransient();
    }

    private BasedOnDescriptor FindControllers()
    {
        return Classes.FromThisAssembly()
            .BasedOn&lt;IController&gt;()
            .If(Component.IsInSameNamespaceAs&lt;FooController&gt;(true))
            .If(t =&gt; t.Name.EndsWith("Controller") &amp;&amp; t.Name != "BarController")                
            .LifestyleTransient();
    }
}
</code></pre>