This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #index: | |
| # path: / | |
| # controller: App\Controller\DefaultController::index | |
| fos_oauth_server_token: | |
| resource: "@FOSOAuthServerBundle/Resources/config/routing/token.xml" | |
| fos_oauth_server_authorize: | |
| resource: "@FOSOAuthServerBundle/Resources/config/routing/authorize.xml" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Controller; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use FOS\RestBundle\Controller\FOSRestController; | |
| use FOS\RestBundle\View\View; | |
| use FOS\RestBundle\Controller\Annotations as FOSRest; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use FOS\OAuthServerBundle\Model\ClientManagerInterface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| security: | |
| encoders: | |
| FOS\UserBundle\Model\UserInterface: bcrypt | |
| role_hierarchy: | |
| ROLE_ADMIN: ROLE_USER | |
| ROLE_SUPER_ADMIN: ROLE_ADMIN | |
| providers: | |
| fos_userbundle: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fos_user: | |
| db_driver: orm | |
| firewall_name: main | |
| user_class: App\Entity\User | |
| from_email: | |
| address: resetting@example.com | |
| sender_name: Demo Resetting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Entity; | |
| use FOS\UserBundle\Model\User as BaseUser; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * @ORM\Entity | |
| * @ORM\Table(name="fos_user") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fos_oauth_server: | |
| db_driver: orm | |
| client_class: App\Entity\Client | |
| access_token_class: App\Entity\AccessToken | |
| refresh_token_class: App\Entity\RefreshToken | |
| auth_code_class: App\Entity\AuthCode | |
| service: | |
| user_provider: fos_user.user_provider.username | |
| options: | |
| access_token_lifetime: 86400 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| composer require friendsofsymfony/user-bundle | |
| composer require friendsofsymfony/oauth-server-bundle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sensio_framework_extra.view.listener: | |
| alias: Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html | |
| fos_rest: | |
| routing_loader: | |
| default_format: json | |
| include_format: false | |
| body_listener: true | |
| format_listener: | |
| rules: | |
| - { path: '^/', priorities: ['json'], fallback_format: json, prefer_extension: false } | |
| param_fetcher_listener: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Controller; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use FOS\RestBundle\Controller\FOSRestController; | |
| use FOS\RestBundle\Controller\Annotations as Rest; | |
| use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
| use App\Entity\Movie; |
NewerOlder