Exemplo n.º 1
0
 protected function getExtensions()
 {
     $requestStack = new RequestStack();
     $requestStack->push(new Request());
     $tabsType = new TabsType();
     $tabsTabType = new TabsTabType();
     $tabsTabActionType = new TabsTabActionsType();
     $aliasType = new AliasType($requestStack);
     return array(new PreloadedExtension(array($tabsType->getName() => $tabsType, $tabsTabType->getName() => $tabsTabType, $tabsTabActionType->getName() => $tabsTabActionType, $aliasType->getName() => $aliasType), array()));
 }
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefaults(array('tab_show' => false));
 }