Symfony 1.4 插件任务
我刚刚创建了我的第一个 symfony 插件。这是一个私人插件(目前),我添加了一个任务。由于某种原因,该任务在 symfony CLI 界面上不可用。即使我在 ProjectConfigurator 类中启用该插件。
如果我将任务移至 symfony root lib/ 文件夹,我可以在 symfony CLI 中看到它可用。但是当我将它移动到我的插件任务文件夹时:什么也没有。
我想我的任务在正确的位置吗?我还缺少其他东西吗?
这是我的目录结构:
plugins/
myFirstPlugin/
config/
data/
lib/
task/
myFirstPluginTask.class.php
I've just created my first symfony plug-in. It's a private plug-in (for now) and i have a task that i've added. For some reason the task isn't available on the symfony CLI interface. Even of if i enable the plugin in the ProjectConfigurator Class.
If i move the task to the symfony root lib/ folder, i can see it available in the symfony CLI. But when i move it to my plugin task folder: nothing.
I think i have the task in the correct spot? Is there something else that i'm missing?
here's my dir structure:
plugins/
myFirstPlugin/
config/
data/
lib/
task/
myFirstPluginTask.class.php
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
呃!我没有在 root/config/ProjectConfiguration.class.php 中启用该插件。我在应用程序configuration.class.php中启用它显然不起作用,因为它一开始就没有加载到ProjectConfiguration类中。
我是菜鸟!
感谢我回答我自己的问题。 ;)
Duh! I didn't enable the plugin in the root/config/ProjectConfiguration.class.php. I enabled it in the app configuration.class.php with evidently won't work because it wasn't loaded in the ProjectConfiguration class to begin with.
I'm a Noob!
Thanks to me for answering my own question. ;)