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
aaec9f86
Commit
aaec9f86
authored
Apr 11, 2015
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed obsolete code
parent
485cad9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
src/Silex/Provider/ValidatorServiceProvider.php
src/Silex/Provider/ValidatorServiceProvider.php
+1
-5
No files found.
src/Silex/Provider/ValidatorServiceProvider.php
View file @
aaec9f86
...
@@ -54,11 +54,7 @@ class ValidatorServiceProvider implements ServiceProviderInterface
...
@@ -54,11 +54,7 @@ class ValidatorServiceProvider implements ServiceProviderInterface
});
});
$app
[
'validator.mapping.class_metadata_factory'
]
=
$app
->
share
(
function
(
$app
)
{
$app
[
'validator.mapping.class_metadata_factory'
]
=
$app
->
share
(
function
(
$app
)
{
if
(
class_exists
(
'Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory'
))
{
return
new
LazyLoadingMetadataFactory
(
new
StaticMethodLoader
());
return
new
LazyLoadingMetadataFactory
(
new
StaticMethodLoader
());
}
return
new
ClassMetadataFactory
(
new
StaticMethodLoader
());
});
});
$app
[
'validator.validator_factory'
]
=
$app
->
share
(
function
()
use
(
$app
)
{
$app
[
'validator.validator_factory'
]
=
$app
->
share
(
function
()
use
(
$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