File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public function publishAction(Request $request)
79
79
$publishCommand = new PublishPostCommand();
80
80
$publishCommand->date = new \DateTime('now');
81
81
82
- $form = $this->get('trt .formable')->generate($publishCommand);
82
+ $form = $this->get('pugx .formable')->generate($publishCommand);
83
83
$form->submit($request->request->all(), false /* Do not clear missing data */);
84
84
85
85
if ($form->isValid()) {
@@ -101,7 +101,7 @@ The `@Formable()` annotation follows the `Symfony\Component\Form\FormBuilderInte
101
101
``` php
102
102
/**
103
103
* @Formable(name="date", dataType="date", options={
104
- * "format"= IntlDateFormatter::MEDIUM ,
104
+ * "format"= "yyyy-MM-dd" ,
105
105
* "days" = {1,2,3,4}
106
106
* })
107
107
*/
@@ -110,7 +110,7 @@ The `@Formable()` annotation follows the `Symfony\Component\Form\FormBuilderInte
110
110
111
111
## Installation
112
112
113
- ` composer require trt /formable `
113
+ ` composer require pugx /formable `
114
114
115
115
``` php
116
116
// Register the Bundle
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " trt /formable" ,
3
- "description" : " The Symfony Form Generator" ,
2
+ "name" : " pugx /formable" ,
3
+ "description" : " The PUGX Symfony Form Generator" ,
4
4
"type" : " Bundle" ,
5
5
"autoload" : {
6
6
"psr-4" : { "Formable\\ " : " src" }
Original file line number Diff line number Diff line change 5
5
xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" >
6
6
7
7
<services >
8
- <service id =" trt .formable" class =" Formable\Generator\Generator" public =" true" >
8
+ <service id =" pugx .formable" class =" Formable\Generator\Generator" public =" true" >
9
9
<argument type =" service" id =" annotation_reader" />
10
10
<argument type =" service" id =" form.factory" />
11
11
</service >
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function setUp()
38
38
{
39
39
static ::bootKernel ();
40
40
$ container = static ::$ kernel ->getContainer ();
41
- $ this ->generator = $ container ->get ('trt .formable ' );
41
+ $ this ->generator = $ container ->get ('pugx .formable ' );
42
42
}
43
43
44
44
protected function tearDown ()
You can’t perform that action at this time.
0 commit comments