File tree Expand file tree Collapse file tree
src/symfony/src/Doctrine/Type Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55namespace Webauthn \Bundle \Doctrine \Type ;
66
77use Doctrine \DBAL \Platforms \AbstractPlatform ;
8+ use Doctrine \DBAL \Types \JsonType ;
89use Doctrine \DBAL \Types \Type ;
910use Webauthn \AttestedCredentialData ;
1011
@@ -39,4 +40,13 @@ public function getName(): string
3940 {
4041 return 'attested_credential_data ' ;
4142 }
43+
44+ public function requiresSQLCommentHint (AbstractPlatform $ platform ): bool
45+ {
46+ if (method_exists (JsonType::class, 'requiresSQLCommentHint ' )) {
47+ return (new JsonType ())->requiresSQLCommentHint ($ platform );
48+ }
49+
50+ return false ;
51+ }
4252}
Original file line number Diff line number Diff line change 55namespace Webauthn \Bundle \Doctrine \Type ;
66
77use Doctrine \DBAL \Platforms \AbstractPlatform ;
8+ use Doctrine \DBAL \Types \JsonType ;
89use Doctrine \DBAL \Types \Type ;
910use Webauthn \PublicKeyCredentialDescriptor ;
1011
@@ -39,4 +40,13 @@ public function getName(): string
3940 {
4041 return 'public_key_credential_descriptor ' ;
4142 }
43+
44+ public function requiresSQLCommentHint (AbstractPlatform $ platform ): bool
45+ {
46+ if (method_exists (JsonType::class, 'requiresSQLCommentHint ' )) {
47+ return (new JsonType ())->requiresSQLCommentHint ($ platform );
48+ }
49+
50+ return false ;
51+ }
4252}
Original file line number Diff line number Diff line change 55namespace Webauthn \Bundle \Doctrine \Type ;
66
77use Doctrine \DBAL \Platforms \AbstractPlatform ;
8+ use Doctrine \DBAL \Types \JsonType ;
89use Doctrine \DBAL \Types \Type ;
910use Webauthn \TrustPath \TrustPath ;
1011
@@ -39,4 +40,13 @@ public function getName(): string
3940 {
4041 return 'trust_path ' ;
4142 }
43+
44+ public function requiresSQLCommentHint (AbstractPlatform $ platform ): bool
45+ {
46+ if (method_exists (JsonType::class, 'requiresSQLCommentHint ' )) {
47+ return (new JsonType ())->requiresSQLCommentHint ($ platform );
48+ }
49+
50+ return false ;
51+ }
4252}
You can’t perform that action at this time.
0 commit comments