Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit ae04d25

Browse files
author
Tobias Sarnowski
committed
upgraded to TypeSafe-core 0.7.0
1 parent d1c195d commit ae04d25

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
<dependencies>
3333
<dependency>
3434
<groupId>com.github.sarnowski</groupId>
35-
<artifactId>TypeSafe</artifactId>
36-
<version>[0.3,2)</version>
35+
<artifactId>TypeSafe-core</artifactId>
36+
<version>[0.7,2)</version>
3737
</dependency>
3838
</dependencies>
3939

@@ -44,4 +44,4 @@
4444
<url>http://sarnowski.github.com/repository</url>
4545
</repository>
4646
</repositories>
47-
</project>
47+
</project>

src/main/php/TypeSafe/validation/ValidationModule.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@
3737
class ValidationModule implements Module {
3838

3939
public function configure(Binder $binder) {
40-
$binder->bind('ValidationService')->to('DefaultValidationService')->inRequestScope();
40+
$binder->bind('ValidationService')->to('DefaultValidationService');
4141

42-
$binder->bind('ValidationInterceptor')->inRequestScope();
42+
$binder->bind('ValidationInterceptor');
4343
$binder->interceptWith('ValidationInterceptor')->on(new ValidationPointcut());
4444

45-
$binder->bind('Validator')->annotatedWith('IsNumeric')->to('IsNumericValidator')->inRequestScope();
46-
$binder->bind('Validator')->annotatedWith('IsText')->to('IsTextValidator')->inRequestScope();
47-
$binder->bind('Validator')->annotatedWith('Match')->to('MatchValidator')->inRequestScope();
48-
$binder->bind('Validator')->annotatedWith('MaxNumber')->to('MaxNumberValidator')->inRequestScope();
49-
$binder->bind('Validator')->annotatedWith('MaxText')->to('MaxTextValidator')->inRequestScope();
50-
$binder->bind('Validator')->annotatedWith('MinNumber')->to('MinNumberValidator')->inRequestScope();
51-
$binder->bind('Validator')->annotatedWith('MinText')->to('MinTextValidator')->inRequestScope();
52-
$binder->bind('Validator')->annotatedWith('NotEmpty')->to('NotEmptyValidator')->inRequestScope();
53-
$binder->bind('Validator')->annotatedWith('NotNull')->to('NotNullValidator')->inRequestScope();
45+
$binder->bind('Validator')->annotatedWith('IsNumeric')->to('IsNumericValidator');
46+
$binder->bind('Validator')->annotatedWith('IsText')->to('IsTextValidator');
47+
$binder->bind('Validator')->annotatedWith('Match')->to('MatchValidator');
48+
$binder->bind('Validator')->annotatedWith('MaxNumber')->to('MaxNumberValidator');
49+
$binder->bind('Validator')->annotatedWith('MaxText')->to('MaxTextValidator');
50+
$binder->bind('Validator')->annotatedWith('MinNumber')->to('MinNumberValidator');
51+
$binder->bind('Validator')->annotatedWith('MinText')->to('MinTextValidator');
52+
$binder->bind('Validator')->annotatedWith('NotEmpty')->to('NotEmptyValidator');
53+
$binder->bind('Validator')->annotatedWith('NotNull')->to('NotNullValidator');
5454
}
5555
}

0 commit comments

Comments
 (0)