legal pages
This commit is contained in:
parent
936a8febe6
commit
ac667d6fa1
1
app/Resources/views/legal/privacy.html.twig
Normal file
1
app/Resources/views/legal/privacy.html.twig
Normal file
@ -0,0 +1 @@
|
|||||||
|
<h1>Privacy</h1>
|
1
app/Resources/views/legal/tos.html.twig
Normal file
1
app/Resources/views/legal/tos.html.twig
Normal file
@ -0,0 +1 @@
|
|||||||
|
<h1>Terms of service</h1>
|
@ -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"
|
||||||
|
@ -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
|
||||||
|
38
src/AppBundle/Controller/LegalController.php
Executable file
38
src/AppBundle/Controller/LegalController.php
Executable 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',
|
||||||
|
[] );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user