Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
d9580d5b
Commit
d9580d5b
authored
Oct 09, 2013
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed CS
parent
86fb50c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
src/Silex/Provider/SerializerServiceProvider.php
src/Silex/Provider/SerializerServiceProvider.php
+2
-8
src/Silex/Provider/TranslationServiceProvider.php
src/Silex/Provider/TranslationServiceProvider.php
+1
-4
No files found.
src/Silex/Provider/SerializerServiceProvider.php
View file @
d9580d5b
...
@@ -42,17 +42,11 @@ class SerializerServiceProvider implements ServiceProviderInterface
...
@@ -42,17 +42,11 @@ class SerializerServiceProvider implements ServiceProviderInterface
});
});
$app
[
'serializer.encoders'
]
=
$app
->
share
(
function
()
{
$app
[
'serializer.encoders'
]
=
$app
->
share
(
function
()
{
return
array
(
return
array
(
new
JsonEncoder
(),
new
XmlEncoder
());
new
JsonEncoder
(),
new
XmlEncoder
()
);
});
});
$app
[
'serializer.normalizers'
]
=
$app
->
share
(
function
()
{
$app
[
'serializer.normalizers'
]
=
$app
->
share
(
function
()
{
return
array
(
return
array
(
new
CustomNormalizer
(),
new
GetSetMethodNormalizer
());
new
CustomNormalizer
(),
new
GetSetMethodNormalizer
()
);
});
});
}
}
...
...
src/Silex/Provider/TranslationServiceProvider.php
View file @
d9580d5b
...
@@ -55,10 +55,7 @@ class TranslationServiceProvider implements ServiceProviderInterface
...
@@ -55,10 +55,7 @@ class TranslationServiceProvider implements ServiceProviderInterface
});
});
$app
[
'translator.domains'
]
=
array
();
$app
[
'translator.domains'
]
=
array
();
$app
[
'locale_fallbacks'
]
=
array
(
'en'
);
$app
[
'locale_fallbacks'
]
=
array
(
'en'
);
}
}
public
function
boot
(
Application
$app
)
public
function
boot
(
Application
$app
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment