From ac667d6fa15773da6fa507dab6f8cba9607b9e19 Mon Sep 17 00:00:00 2001 From: Kayn Ty Date: Wed, 25 Apr 2018 14:08:41 +0200 Subject: [PATCH] legal pages --- app/Resources/views/legal/privacy.html.twig | 1 + app/Resources/views/legal/tos.html.twig | 1 + app/config/routing.yml | 4 +++ app/config/security.yml | 2 +- src/AppBundle/Controller/LegalController.php | 38 ++++++++++++++++++++ 5 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 app/Resources/views/legal/privacy.html.twig create mode 100644 app/Resources/views/legal/tos.html.twig create mode 100755 src/AppBundle/Controller/LegalController.php diff --git a/app/Resources/views/legal/privacy.html.twig b/app/Resources/views/legal/privacy.html.twig new file mode 100644 index 00000000..11e443ec --- /dev/null +++ b/app/Resources/views/legal/privacy.html.twig @@ -0,0 +1 @@ +

Privacy

diff --git a/app/Resources/views/legal/tos.html.twig b/app/Resources/views/legal/tos.html.twig new file mode 100644 index 00000000..d495e190 --- /dev/null +++ b/app/Resources/views/legal/tos.html.twig @@ -0,0 +1 @@ +

Terms of service

diff --git a/app/config/routing.yml b/app/config/routing.yml index 2c405028..77ddbb36 100755 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -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" diff --git a/app/config/security.yml b/app/config/security.yml index 655d938b..c6a9a960 100755 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -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 diff --git a/src/AppBundle/Controller/LegalController.php b/src/AppBundle/Controller/LegalController.php new file mode 100755 index 00000000..883f3866 --- /dev/null +++ b/src/AppBundle/Controller/LegalController.php @@ -0,0 +1,38 @@ +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', + [] ); + } + + +}