This repository has been archived by the owner on Jul 10, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update module coding style and remove hardcoded default form view hel…
…pers ignore list
- Loading branch information
1 parent
29eb778
commit afe9756
Showing
22 changed files
with
1,122 additions
and
640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/TwbBundle/Form/View/Helper/Factory/TwbBundleFormElementFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace TwbBundle\Form\View\Helper\Factory; | ||
|
||
use Zend\ServiceManager\FactoryInterface; | ||
use Zend\ServiceManager\ServiceLocatorInterface; | ||
use TwbBundle\Form\View\Helper\TwbBundleFormElement; | ||
|
||
/** | ||
* Factory to inject the ModuleOptions hard dependency | ||
* | ||
* @author Fábio Carneiro <fahecs@gmail.com> | ||
* @license MIT | ||
*/ | ||
class TwbBundleFormElementFactory implements FactoryInterface | ||
{ | ||
public function createService(ServiceLocatorInterface $serviceLocator) | ||
{ | ||
$options = $serviceLocator->getServiceLocator()->get('TwbBundle\Options\ModuleOptions'); | ||
return new TwbBundleFormElement($options); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.