legal pages
This commit is contained in:
parent
936a8febe6
commit
ac667d6fa1
|
@ -0,0 +1 @@
|
|||
<h1>Privacy</h1>
|
|
@ -0,0 +1 @@
|
|||
<h1>Terms of service</h1>
|
|
@ -26,6 +26,10 @@ twitter_login:
|
|||
app_festival:
|
||||
resource: "@AppBundle/Controller/FestivalController.php"
|
||||
type: annotation
|
||||
# legal info pages
|
||||
app_legal:
|
||||
resource: "@AppBundle/Controller/LegalController.php"
|
||||
type: annotation
|
||||
|
||||
app_product_category:
|
||||
resource: "@AppBundle/Controller/ProductCategoryController.php"
|
||||
|
|
|
@ -34,7 +34,7 @@ security:
|
|||
resource_owners:
|
||||
facebook: "/login/check-facebook"
|
||||
google: "/login/check-google"
|
||||
disqus: "/login/check-disqus"
|
||||
# disqus: "/login/check-disqus"
|
||||
# my_custom_provider: "/login/check-custom"
|
||||
twitter: "/login/check-twitter"
|
||||
login_path: /login
|
||||
|
|
|
@ -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