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
9d688a93
Commit
9d688a93
authored
Jan 08, 2015
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed usage of deprecated class
parent
911f2499
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/Silex/Provider/ValidatorServiceProvider.php
src/Silex/Provider/ValidatorServiceProvider.php
+1
-1
No files found.
src/Silex/Provider/ValidatorServiceProvider.php
View file @
9d688a93
...
@@ -30,7 +30,7 @@ class ValidatorServiceProvider implements ServiceProviderInterface
...
@@ -30,7 +30,7 @@ class ValidatorServiceProvider implements ServiceProviderInterface
{
{
$app
[
'validator'
]
=
$app
->
share
(
function
(
$app
)
{
$app
[
'validator'
]
=
$app
->
share
(
function
(
$app
)
{
if
(
isset
(
$app
[
'translator'
]))
{
if
(
isset
(
$app
[
'translator'
]))
{
$r
=
new
\ReflectionClass
(
'Symfony\Component\Validator\Validat
or
'
);
$r
=
new
\ReflectionClass
(
'Symfony\Component\Validator\Validat
ion
'
);
$file
=
dirname
(
$r
->
getFilename
())
.
'/Resources/translations/validators.'
.
$app
[
'locale'
]
.
'.xlf'
;
$file
=
dirname
(
$r
->
getFilename
())
.
'/Resources/translations/validators.'
.
$app
[
'locale'
]
.
'.xlf'
;
if
(
file_exists
(
$file
))
{
if
(
file_exists
(
$file
))
{
$app
[
'translator'
]
->
addResource
(
'xliff'
,
$file
,
$app
[
'locale'
],
'validators'
);
$app
[
'translator'
]
->
addResource
(
'xliff'
,
$file
,
$app
[
'locale'
],
'validators'
);
...
...
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