legal pages

This commit is contained in:
Kayn Ty 2018-04-25 14:08:41 +02:00
parent 936a8febe6
commit ac667d6fa1
5 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1 @@
<h1>Privacy</h1>

View File

@ -0,0 +1 @@
<h1>Terms of service</h1>

View File

@ -26,6 +26,10 @@ twitter_login:
app_festival: app_festival:
resource: "@AppBundle/Controller/FestivalController.php" resource: "@AppBundle/Controller/FestivalController.php"
type: annotation type: annotation
# legal info pages
app_legal:
resource: "@AppBundle/Controller/LegalController.php"
type: annotation
app_product_category: app_product_category:
resource: "@AppBundle/Controller/ProductCategoryController.php" resource: "@AppBundle/Controller/ProductCategoryController.php"

View File

@ -34,7 +34,7 @@ security:
resource_owners: resource_owners:
facebook: "/login/check-facebook" facebook: "/login/check-facebook"
google: "/login/check-google" google: "/login/check-google"
disqus: "/login/check-disqus" # disqus: "/login/check-disqus"
# my_custom_provider: "/login/check-custom" # my_custom_provider: "/login/check-custom"
twitter: "/login/check-twitter" twitter: "/login/check-twitter"
login_path: /login login_path: /login

View File

@ -0,0 +1,38 @@
<?php
namespace AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
class LegalController extends Controller {
private $tokenManager;
public function __construct( CsrfTokenManagerInterface $tokenManager = null ) {
$this->tokenManager = $tokenManager;
}
/**
* @Route("/tos", name="tos")
*/
public function tosAction( Request $request ) {
return $this->render( 'legal/tos.html.twig',
[] );
}
/**
* @Route("/privacy", name="privacy")
*/
public function privacyAction( Request $request ) {
// replace this example code with whatever you need
return $this->render( 'legal/privacy.html.twig',
[] );
}
}