Commit 4c3c7666 authored by Delaunois Thibault's avatar Delaunois Thibault

mise à jour des fichiers (v1.1)

parent 325f1179
......@@ -24,7 +24,7 @@ APP_SECRET=e304b5b461665c4fd390e6af3c0d3e2f
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
DATABASE_URL=mysql://root:root@127.0.0.1:3306/carrefour_roman_db
###< doctrine/doctrine-bundle ###
###> symfony/swiftmailer-bundle ###
......
......@@ -2,6 +2,7 @@
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" packagePrefix="App\" />
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" packagePrefix="App\Tests\" />
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
......
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="2df11c76-76d3-44d2-a000-f2f266746bcb" name="Default Changelist" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<list default="true" id="2df11c76-76d3-44d2-a000-f2f266746bcb" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.env" beforeDir="false" afterPath="$PROJECT_DIR$/.env" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/carrefour_roman.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/carrefour_roman.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/packages/doctrine.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/config/packages/doctrine.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Controller/HelloController.php" beforeDir="false" afterPath="$PROJECT_DIR$/src/Controller/HelloController.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/admin/acces_admin.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/admin/acces_admin.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/admin/gestion_admin_books_table.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/admin/gestion_admin_books_table.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/admin/gestion_admin_commentaries_table.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/admin/gestion_admin_commentaries_table.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/admin/gestion_admin_privateMessages_table.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/admin/gestion_admin_privateMessages_table.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/admin/gestion_admin_searchList_table.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/admin/gestion_admin_searchList_table.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/admin/gestion_admin_users_table.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/admin/gestion_admin_users_table.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/admin/gestion_admin_wishList_table.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/admin/gestion_admin_wishList_table.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/base.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/base.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/general.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/general.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/navLogin/nav_not_registred.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/nav_not_registred.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/navLogin/nav_registred.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/nav_registred.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/pages/connexion.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/pages/connexion.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/pages/contact.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/pages/contact.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/pages/description_livre.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/pages/description_livre.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/pages/faq.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/pages/faq.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/pages/gestion_listes.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/pages/gestion_listes.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/pages/index.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/pages/index.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/pages/inscription.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/pages/inscription.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/pages/liste_membres.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/pages/liste_membres.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/pages/liste_romans_recherche.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/pages/liste_romans_recherche.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/pages/message_prive.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/pages/message_prive.html.twig" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/pages/profile.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/pages/profile.html.twig" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
......@@ -14,6 +41,9 @@
<executable />
</execution>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="PhpWorkspaceProjectConfiguration">
<include_path>
<path value="$PROJECT_DIR$/vendor/symfony/expression-language" />
......@@ -112,19 +142,29 @@
</include_path>
</component>
<component name="ProjectId" id="1W256RxcJsNCqIBne7rMvFf6FqA" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showExcludedFiles" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="J:\Webdev\Projet_web_dynamique\Code\complete\carrefour_roman\templates" />
</key>
</component>
<component name="ServiceViewManager">
<option name="viewStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
<serviceView>
<treeState>
<expand />
<select />
</treeState>
</serviceView>
</list>
</option>
</component>
......@@ -141,10 +181,45 @@
<workItem from="1578334674237" duration="1725000" />
<workItem from="1578416126782" duration="1617000" />
<workItem from="1578479690109" duration="8907000" />
<workItem from="1578678287347" duration="601000" />
<workItem from="1578741978080" duration="2591000" />
<workItem from="1578831836894" duration="606000" />
<workItem from="1578851282352" duration="601000" />
<workItem from="1578914566803" duration="1202000" />
<workItem from="1579088864265" duration="635000" />
<workItem from="1579275020202" duration="736000" />
<workItem from="1579275915817" duration="1209000" />
<workItem from="1579521709600" duration="602000" />
<workItem from="1579549505824" duration="604000" />
<workItem from="1579596430925" duration="600000" />
<workItem from="1579689357237" duration="1021000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State>
<option name="COLUMN_ORDER" />
</State>
</value>
</entry>
</map>
</option>
</component>
<component name="WindowStateProjectService">
<state x="608" y="269" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog" timestamp="1579275925211">
<screen x="0" y="0" width="1857" height="1080" />
</state>
<state x="608" y="269" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog/0.0.1857.1080@0.0.1857.1080" timestamp="1579275925211" />
<state x="624" y="365" key="com.intellij.ide.util.TipDialog" timestamp="1579689654024">
<screen x="0" y="0" width="1857" height="1080" />
</state>
<state x="624" y="365" key="com.intellij.ide.util.TipDialog/0.0.1857.1080@0.0.1857.1080" timestamp="1579689654024" />
</component>
</project>
\ No newline at end of file
parameters :
env(DATABASE_URL): 'mysql://root:root@127.0.0.1:8000/carrefour_roman_db'
doctrine:
dbal:
# configure these for your database server
......
......@@ -12,8 +12,8 @@ class HelloController extends AbstractController
* @Route("/", name="homePage")
*/
public function home() {
$content = 'Vous êtes bien sur l\'accueil.';
return new Response($content);
return $this -> render('pages/index.html.twig');
}
/**
......@@ -21,8 +21,7 @@ class HelloController extends AbstractController
* @Route("/registration", name="registrationPage")
*/
public function registration(){
$content = 'Vous êtes bien sur la page d\'inscription';
return new Response($content);
return $this -> render('pages/inscription.html.twig');
}
/**
......@@ -30,8 +29,7 @@ class HelloController extends AbstractController
* @Route("/connection", name="connectionPage")
*/
public function connection(){
$content="Vous êtes bien sur la page de connexion.";
return new Response($content);
return $this -> render('pages/connexion.html.twig');
}
/**
......@@ -39,8 +37,7 @@ class HelloController extends AbstractController
* @Route("/bookSearchList", name="bookSearchListPage")
*/
public function bookSearchList(){
$content="Vous êtes bien sur la page de recherche de romans.";
return new Response($content);
return $this -> render('pages/liste_romans_recherche.html.twig');
}
/**
......@@ -48,8 +45,7 @@ class HelloController extends AbstractController
* @Route("/usersList", name="usersListPage")
*/
public function usersList(){
$content="Vous êtes bien sur la page de recherche des membres.";
return new Response($content);
return $this -> render('pages/liste_membres.html.twig');
}
/**
......@@ -57,8 +53,7 @@ class HelloController extends AbstractController
* @Route("/contact", name="contactPage")
*/
public function contact(){
$content="Vous êtes bien sur la page de contact.";
return new Response($content);
return $this -> render('pages/contact.html.twig');
}
/**
......@@ -66,8 +61,7 @@ class HelloController extends AbstractController
* @Route("/faq", name="faqPage")
*/
public function faq(){
$content="Vous êtes bien sur la page de la foire aux questions.";
return new Response($content);
return $this -> render('pages/faq.html.twig');
}
/**
......@@ -75,8 +69,7 @@ class HelloController extends AbstractController
* @Route("/profile", name="profilePage")
*/
public function profile(){
$content="Vous êtes bien sur la page de profil.";
return new Response($content);
return $this -> render('pages/profile.html.twig');
}
/**
......@@ -84,8 +77,7 @@ class HelloController extends AbstractController
* @Route("/listManagement", name="listManagementPage")
*/
public function listManagement(){
$content="Vous êtes bien sur la page de gestion des listes.";
return new Response($content);
return $this -> render('pages/gestion_listes.html.twig');
}
/**
......@@ -93,8 +85,7 @@ class HelloController extends AbstractController
* @Route("/privateMessage", name="privateMessagePage")
*/
public function privateMessage(){
$content="Vous êtes bien sur la page des messages privés.";
return new Response($content);
return $this -> render('pages/messages_prive.html.twig');
}
/**
......@@ -102,8 +93,7 @@ class HelloController extends AbstractController
* @Route("/adminAccess", name="adminAccessPage")
*/
public function adminAccess(){
$content="Vous êtes bien sur la page de l'accès admin.";
return new Response($content);
return $this -> render('admin/acces_admin.html.twig');
}
/**
......@@ -111,8 +101,7 @@ class HelloController extends AbstractController
* @Route("/adminUsersTable", name="adminUsersTablePage")
*/
public function adminUsersTable(){
$content="Vous êtes bien sur la page de la gestion administrateur de la table des utilisateurs.";
return new Response($content);
return $this -> render('admin/gestion_admin_users_table.html.twig');
}
/**
......@@ -120,8 +109,7 @@ class HelloController extends AbstractController
* @Route("/adminBooksTable", name="adminBooksTablePage")
*/
public function adminBooksTable(){
$content="Vous êtes bien sur la page de la gestion administrateur de la table des romans.";
return new Response($content);
return $this -> render('admin/gestion_admin_books_table.html.twig');
}
/**
......@@ -129,8 +117,7 @@ class HelloController extends AbstractController
* @Route("/adminCommentariesTable", name="adminCommentariesTablePage")
*/
public function adminCommentariesTable(){
$content="Vous êtes bien sur la page de la gestion administrateur de la table des commentaires.";
return new Response($content);
return $this -> render('admin/gestion_admin_commentaries_table.html.twig');
}
/**
......@@ -138,8 +125,7 @@ class HelloController extends AbstractController
* @Route("/adminPrivateMessagesTable", name="adminPrivateMessagesTablePage")
*/
public function adminPrivateMessagesTable(){
$content="Vous êtes bien sur la page de la gestion administrateur de la table des messages privés.";
return new Response($content);
return $this -> render('admin/gestion_admin_privateMessages_table.html.twig');
}
/**
......@@ -147,8 +133,7 @@ class HelloController extends AbstractController
* @Route("/adminWishListTable", name="adminWishListTablePage")
*/
public function adminWishListTable(){
$content="Vous êtes bien sur la page de la gestion administrateur de la table de la liste de souhait.";
return new Response($content);
return $this -> render('admin/gestion_admin_wishList_table.html.twig');
}
/**
......@@ -156,8 +141,7 @@ class HelloController extends AbstractController
* @Route("/adminSearchListTable", name="adminSearchListTablePage")
*/
public function adminSearchListTable(){
$content="Vous êtes bien sur la page de la gestion administrateur de la table de la liste de recherche.";
return new Response($content);
return $this -> render('admin/gestion_admin_searchList_table.html.twig');
}
......
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\CommentairesRepository")
*/
class Commentaires
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="date")
*/
private $post_data;
/**
* @ORM\Column(type="text")
*/
private $texte;
public function getId(): ?int
{
return $this->id;
}
public function getPostData(): ?\DateTimeInterface
{
return $this->post_data;
}
public function setPostData(\DateTimeInterface $post_data): self
{
$this->post_data = $post_data;
return $this;
}
public function getTexte(): ?string
{
return $this->texte;
}
public function setTexte(string $texte): self
{
$this->texte = $texte;
return $this;
}
}
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\ListeLivresProposesRepository")
*/
class ListeLivresProposes
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=150)
*/
private $titre;
/**
* @ORM\Column(type="string", length=150)
*/
private $auteur;
/**
* @ORM\Column(type="string", length=150)
*/
private $maison_edition;
/**
* @ORM\Column(type="string", length=4)
*/
private $annee_edition;
/**
* @ORM\Column(type="string", length=255)
*/
private $genre;
/**
* @ORM\Column(type="string", length=255)
*/
private $sous_genre;
/**
* @ORM\Column(type="string", length=255)
*/
private $breve_description;
/**
* @ORM\Column(type="text")
*/
private $description;
public function getId(): ?int
{
return $this->id;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getAuteur(): ?string
{
return $this->auteur;
}
public function setAuteur(string $auteur): self
{
$this->auteur = $auteur;
return $this;
}
public function getMaisonEdition(): ?string
{
return $this->maison_edition;
}
public function setMaisonEdition(string $maison_edition): self
{
$this->maison_edition = $maison_edition;
return $this;
}
public function getAnneeEdition(): ?string
{
return $this->annee_edition;
}
public function setAnneeEdition(string $annee_edition): self
{
$this->annee_edition = $annee_edition;
return $this;
}
public function getGenre(): ?string
{
return $this->genre;
}
public function setGenre(string $genre): self
{
$this->genre = $genre;
return $this;
}
public function getSousGenre(): ?string
{
return $this->sous_genre;
}
public function setSousGenre(string $sous_genre): self
{
$this->sous_genre = $sous_genre;
return $this;
}
public function getBreveDescription(): ?string
{
return $this->breve_description;
}
public function setBreveDescription(string $breve_description): self
{
$this->breve_description = $breve_description;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
}
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\ListeLivresSouhaitesRepository")
*/
class ListeLivresSouhaites
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=150)
*/
private $titre;
/**
* @ORM\Column(type="string", length=150)
*/
private $auteur;
/**
* @ORM\Column(type="string", length=150)
*/
private $maison_edition;
/**
* @ORM\Column(type="string", length=4)
*/
private $annee_edition;
/**
* @ORM\Column(type="string", length=255)
*/
private $genre;
/**
* @ORM\Column(type="string", length=255)
*/
private $sous_genre;
/**
* @ORM\Column(type="string", length=255)
*/
private $breve_description;
/**
* @ORM\Column(type="text")
*/
private $description;
public function getId(): ?int
{
return $this->id;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getAuteur(): ?string
{
return $this->auteur;
}
public function setAuteur(string $auteur): self
{
$this->auteur = $auteur;
return $this;
}
public function getMaisonEdition(): ?string
{
return $this->maison_edition;
}
public function setMaisonEdition(string $maison_edition): self
{
$this->maison_edition = $maison_edition;
return $this;
}
public function getAnneeEdition(): ?string
{
return $this->annee_edition;
}
public function setAnneeEdition(string $annee_edition): self
{
$this->annee_edition = $annee_edition;
return $this;
}
public function getGenre(): ?string
{
return $this->genre;
}
public function setGenre(string $genre): self
{
$this->genre = $genre;
return $this;
}
public function getSousGenre(): ?string
{
return $this->sous_genre;
}
public function setSousGenre(string $sous_genre): self
{
$this->sous_genre = $sous_genre;
return $this;
}
public function getBreveDescription(): ?string
{
return $this->breve_description;
}
public function setBreveDescription(string $breve_description): self
{
$this->breve_description = $breve_description;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
}