Symfony 1.4 插件任务

发布于 2024-10-04 06:07:26 字数 416 浏览 0 评论 0原文

我刚刚创建了我的第一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

能怎样 2024-10-11 06:07:26

呃!我没有在 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. ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文