Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit 5b6c4d4

Browse files
committed
Make PHP syntax highlighting work on GitHub
1 parent c3d3a55 commit 5b6c4d4

6 files changed

Lines changed: 17 additions & 0 deletions

File tree

Resources/doc/backup_codes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Backup codes have to be provided from the user object. The user entity has to im
1818
`Scheb\TwoFactorBundle\Model\BackupCodeInterface`. Here's an example:
1919

2020
```php
21+
<?php
2122
2223
namespace Acme\DemoBundle\Entity;
2324

Resources/doc/installation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ composer require scheb/two-factor-bundle
2121
Enable this bundle in your `config/bundles.php`:
2222

2323
```php
24+
<?php
25+
2426
return [
2527
// ...
2628
Scheb\TwoFactorBundle\SchebTwoFactorBundle::class => ['all' => true],

Resources/doc/providers/email.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Your user entity has to implement `Scheb\TwoFactorBundle\Model\Email\TwoFactorIn
4040
be persisted, so make sure that it is stored in a persisted field.
4141

4242
```php
43+
<?php
44+
4345
namespace Acme\DemoBundle\Entity;
4446
4547
use Doctrine\ORM\Mapping as ORM;
@@ -103,6 +105,8 @@ By default the email is plain text and very simple. If you want a different styl
103105
own mailer service. It must implement `Scheb\TwoFactorBundle\Mailer\AuthCodeMailerInterface`.
104106

105107
```php
108+
<?php
109+
106110
namespace Acme\DemoBundle\Mailer;
107111
108112
use Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface;

Resources/doc/providers/google.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Your user entity has to implement `Scheb\TwoFactorBundle\Model\Google\TwoFactorI
2929
Authenticator for a user, generate a secret code and persist it with the user entity.
3030

3131
```php
32+
<?php
33+
3234
namespace Acme\DemoBundle\Entity;
3335
3436
use Doctrine\ORM\Mapping as ORM;
@@ -104,6 +106,8 @@ $secret = $container->get("scheb_two_factor.security.google_authenticator")->gen
104106
With Symfony 4, you can use auto-wiring dependency injection to get the services:
105107

106108
```php
109+
<?php
110+
107111
use Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\GoogleAuthenticatorInterface;
108112
109113
public function generateSecret(GoogleAuthenticatorInterface $googleAuthenticatorService)

Resources/doc/providers/totp.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ We warned, custom configurations will not be compatible with the defaults of Goo
3434
have to use another application (e.g. FreeOTP on Android).
3535

3636
```php
37+
<?php
38+
3739
namespace Acme\DemoBundle\Entity;
3840
3941
use Doctrine\ORM\Mapping as ORM;
@@ -119,6 +121,8 @@ $secret = $container->get("scheb_two_factor.security.totp_authenticator")->gener
119121
With Symfony 4, you can use auto-wiring dependency injection to get the services:
120122

121123
```php
124+
<?php
125+
122126
use Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Totp\TotpAuthenticatorInterface;
123127
124128
public function generateSecret(TotpAuthenticatorInterface $totpAuthenticatorService)

Resources/doc/trusted_device.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ cookies at once, e.g. in case of a security breach. To make use of this feature,
2525
`Scheb\TwoFactorBundle\Model\TrustedDeviceInterface` in the user entity.
2626

2727
```php
28+
<?php
29+
2830
namespace Acme\DemoBundle\Entity;
2931
3032
use Doctrine\ORM\Mapping as ORM;

0 commit comments

Comments
 (0)