From: Joe A. <jo...@bo...> - 2013-07-23 03:43:37
|
Has anybody attempted to use Zend's built in support for CLI to interface w/ VuFind? This is one of the things I have really enjoyed in other modern frameworks like mojolicious or grails for speed of debugging. It is really powerful to be able to say, for example: myapp show routes or myapp action getUser "id=134132" I don't know whether Zend's CLI or (VuFind's compatibility with it) are at that kind of level, but I know that kind of thing would help me considerably right now. It helps you slice though the complexity and obfuscatory magicks of the framework (admittedly with additional complexity and magick). Anybody looked into this? --Joe |
From: Demian K. <dem...@vi...> - 2013-07-23 10:31:04
|
I'm honestly not sure what ZF2's full CLI capabilities are like -- CLI support barely existed when I started the work of porting VuFind over, and I haven't had time to investigate what has evolved since then. I can say that, for backward compatibility with VF1 tools, I wrote a custom CLI router for VF2 that picks controller/action based on containing directory/filename, which allows the various tools in the import, util and harvest directories to operate just like they used to. It's entirely possible that this customization will interfere with native CLI behavior. If that's the case, let me know and I'm sure we can work out a way around it (perhaps there is a better, more straightforward way to make these tools work). - Demian ________________________________ From: Joe Atzberger [jo...@bo...] Sent: Monday, July 22, 2013 11:43 PM To: vufind-tech Tech Subject: [VuFind-Tech] Zend CLI Has anybody attempted to use Zend's built in support for CLI to interface w/ VuFind? This is one of the things I have really enjoyed in other modern frameworks like mojolicious or grails for speed of debugging. It is really powerful to be able to say, for example: myapp show routes or myapp action getUser "id=134132" I don't know whether Zend's CLI or (VuFind's compatibility with it) are at that kind of level, but I know that kind of thing would help me considerably right now. It helps you slice though the complexity and obfuscatory magicks of the framework (admittedly with additional complexity and magick). Anybody looked into this? --Joe |