【发布时间】:2013-07-22 09:25:47
【问题描述】:
根据来自 TYPO3 V6 的http://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Autoloading/Index.html,鼓励使用命名空间,并且任何 PHP 文件都应该只包含一个类。 引用上面的链接
- In TYPO3 every class must reside in its own file, i.e. there should
be only one class per PHP file
- Use the class naming convention and file location.
我的扩展是使用扩展构建器构建的。
它使用 twitter API 库,并且有一个文件 config.php 要使用。
该文件包含multiple classes。
问题是,要使用这个 config.php ,遵循这两个条件,我应该将config.php 分成多个 php 文件,每个文件都有一个类吗?
或者有没有一种非常巧妙的方法来解决这个问题?
【问题讨论】:
标签: namespaces typo3 extbase