Closed lsmith77 closed 11 years ago
I'm working on it.
I've checked the "Dependency Container Configuration", it's correct.
However, the Configuration is not correct. routing.xml
should be placed in a routing
directory and should be renamed, Also the controllers, PhpcrSearchController
should become Phpcr\SearchController
, shouldn't it?
At last, the LICENSE file needs an update
I'm working on README, Testing integration and updating composer.json - all dependencies are not listed.
Interfaces are OK - there are none ;)
@WouterJ IMHO, the Controller name is ok. I don't see how a subnamespace would help things. If anything - I would rename the bundle to PhpcrSearchBundle and the Controller to SearchController, but I think that the effort is not worth the gain.
If anything - I would rename the bundle to PhpcrSearchBundle and the Controller to SearchController, but I think that the effort is not worth the gain.
In the future, we planned supporting other database layers aswell. So this change is not correct. And that's why I suggested that namespace.
But if we do not use that namespace, the classname is still wrong. It should become SearchPhpcrController
, but then again, I think we need namespaces. /cc @dbu @dantleech
However, :+1: for working on this!
btw, the README is up to date afaics?
Nope, the deps are not up to date, and the LICENSE should be in Resources/meta. I guess the README template should be updated to reflect this.
i guess the proper thing according to our code style indeed would be the Phpcr sub namespace for the controller.
note that imo in the longer run we should refactor the LiipSearchBundle to have a search service so that we only ever need 1 controller, and then simply add the phpcr search provider (along with any other providers we come up with) into the LiipSearchBundle and drop this bundle.
so honestly to me the CmfSearchBundle is kind of less important. its good to clean it up but we don't need to be perfectionist.
Yup, I was thinking the same - that the controller should be rather replaced by a service. I'll add a test this evening and I pass on to another bundle.