Beispiel #1
0
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $options = $this->getOptions($serviceLocator)->toArray();
     $form = new AlbumForm('album', $options);
     $form->setHydrator(new ClassMethods())->setObject(new AlbumEntity());
     $form->setInputFilter(new AlbumFilter());
     return $form;
 }