Ich habe es soeben hinbekommen.
Wenn ich für jedes Interface ein eigenes File mache, dann funktioniert das.
Bsp:
StateInterface.php
namespace Indor\MyExt\Utility\Enum;
/**
* Class StateInterface
*/
interface StateInterface extends \TYPO3\CMS\Core\SingletonInterface{
const SUCCESS = "success";
const ERROR = "error";
}
Aufruf in einer anderen Datei zB: einem Controller:
use Vendor\MyExt\Utility\Enum\StateInterface;
public function indexAction(){
$hlp = StateInterface::SUCCESS;
}
lg
_______________________________________________
TYPO3-german mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german