Inject the smart registry into the base doctrine controller