diff --git a/index.php b/index.php index 3238dab..770832c 100644 --- a/index.php +++ b/index.php @@ -1,48 +1,9 @@ - - - addNews(new News($title,$description,$pubdate,$link)); - $gateAdmin = new gatewayAdmin($con); - $sources = new GatewaySources($con); - - $gateAdmin->addAdmin(new admin("toto","tata")); - - $sources->addSources(new sources($link)); - - - - require("listeNews.php"); - - - } - catch( PDOException $Exception ) { - echo 'erreur'; - echo $Exception->getMessage(); - } - ?> - - - +?> diff --git a/sources.php b/sources.php index 20ba9cf..f9386d4 100644 --- a/sources.php +++ b/sources.php @@ -4,14 +4,14 @@ class sources private string $link; public function __construct(string $link) - { - $this->link = $link; - } + { + $this->link = $link; + } - public function getlink() - { - return $this->link; - } + public function getlink() + { + return $this->link; + } }