简体   繁体   English

如何将Symfony Admin Generator文件移动到插件?

[英]How to move Symfony Admin Generator files to a plugin?

I try to move my module which generated by the Admin Genrator to a plugin. 我尝试将由管理生成器生成的模块移动到插件。

Error: 错误:

Fatal error: Class 'BaseFooGeneratorConfiguration' not found in ... 致命错误:在...中找不到类'BaseFooGeneratorConfiguration'

The action.class.php includes to files: action.class.php包括以下文件:

  1. fooGeneratorConfiguration.class.php fooGeneratorConfiguration.class.php

  2. fooGeneratorHelper.class.php fooGeneratorHelper.class.php

Both classes extends of an base class (BaseFooGeneratorConfiguration,BaseFooGeneratorHelper). 这两个类都是基类(BaseFooGeneratorConfiguration,BaseFooGeneratorHelper)的扩展。 The problem is that those classes only exist in the cache. 问题在于这些类仅存在于缓存中。

Do i need to copy the class from cache into my plugin ?! 我是否需要将类从缓存复制到插件中?

将模块移至插件后,是否尝试清除缓存?

./symfony cc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM