我試圖加載監聽器,但symfony的不斷拋出此錯誤: ClassNotFoundException in appDevDebugProjectContainer.php line 1783:
Attempted to load class "CommandeListener" from namespace "Louvre\ReversationBundle\Services\Listeners
我想通過靜態回調驗證我的實體。 我能夠使它在Symfony guide之後工作,但有些事情對我而言並不清楚。 public static function validate($object, ExecutionContextInterface $context, $payload)
{
// somehow you have an array of "fake names"