diff --git a/.idea/Php_RSS.iml b/.idea/Php_RSS.iml
index 611ec76..996df65 100755
--- a/.idea/Php_RSS.iml
+++ b/.idea/Php_RSS.iml
@@ -5,6 +5,10 @@
+
+
+
+
diff --git a/fluxRSS/model/ArticleModel.php b/fluxRSS/model/ArticleModel.php
index 4caf73a..3c7758b 100755
--- a/fluxRSS/model/ArticleModel.php
+++ b/fluxRSS/model/ArticleModel.php
@@ -2,15 +2,14 @@
namespace model;
-use DAL;
+use DAL\{ArticleGateway,Connection};
use metier;
-require_once "config/config.php";
class ArticleModel
{
public static function getArticles() : array
{
- $gwArticle = new DAL\ArticleGateway(new DAL\Connection( $base, $login, $mdp));
+ $gwArticle = new ArticleGateway(new Connection('mysql:host = localhost; dbname = dbrorossetto', 'rorossetto', 'tpphp'));
$res = $gwArticle->getAllArticles();
foreach($res as $row){
$tabArticle[] = new metier\Article($row['id'], $row['title'],$row['datePub'],$row['description'],$row['guid'],$row['link'],$row['mediaContent'],$row['provenance'] );
diff --git a/fluxRSS/vendor/composer/autoload_psr4.php b/fluxRSS/vendor/composer/autoload_psr4.php
index abb6bf8..e908ee3 100755
--- a/fluxRSS/vendor/composer/autoload_psr4.php
+++ b/fluxRSS/vendor/composer/autoload_psr4.php
@@ -6,10 +6,11 @@ $vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
- 'modeles\\' => array($baseDir . '/modeles'),
+ 'model\\' => array($baseDir . '/model'),
'controleur\\' => array($baseDir . '/controleur'),
'config\\' => array($baseDir . '/config'),
'Twig\\' => array($vendorDir . '/twig/twig/src'),
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
+ 'DAL\\' => array($baseDir . '/DAL'),
);
diff --git a/fluxRSS/vendor/composer/autoload_static.php b/fluxRSS/vendor/composer/autoload_static.php
index dc37466..716819b 100755
--- a/fluxRSS/vendor/composer/autoload_static.php
+++ b/fluxRSS/vendor/composer/autoload_static.php
@@ -14,7 +14,7 @@ class ComposerStaticInita6287a55fe354aae4af95d1e4395c915
public static $prefixLengthsPsr4 = array (
'm' =>
array (
- 'modeles\\' => 8,
+ 'model\\' => 6,
),
'c' =>
array (
@@ -30,12 +30,16 @@ class ComposerStaticInita6287a55fe354aae4af95d1e4395c915
'Symfony\\Polyfill\\Mbstring\\' => 26,
'Symfony\\Polyfill\\Ctype\\' => 23,
),
+ 'D' =>
+ array (
+ 'DAL\\' => 4,
+ ),
);
public static $prefixDirsPsr4 = array (
- 'modeles\\' =>
+ 'model\\' =>
array (
- 0 => __DIR__ . '/../..' . '/modeles',
+ 0 => __DIR__ . '/../..' . '/model',
),
'controleur\\' =>
array (
@@ -57,6 +61,10 @@ class ComposerStaticInita6287a55fe354aae4af95d1e4395c915
array (
0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
),
+ 'DAL\\' =>
+ array (
+ 0 => __DIR__ . '/../..' . '/DAL',
+ ),
);
public static $classMap = array (
diff --git a/fluxRSS/vendor/composer/installed.php b/fluxRSS/vendor/composer/installed.php
index a25b246..129d988 100755
--- a/fluxRSS/vendor/composer/installed.php
+++ b/fluxRSS/vendor/composer/installed.php
@@ -1,9 +1,9 @@
array(
'name' => '__root__',
- 'pretty_version' => '1.0.0+no-version-set',
- 'version' => '1.0.0.0',
- 'reference' => NULL,
+ 'pretty_version' => 'dev-master',
+ 'version' => 'dev-master',
+ 'reference' => '16f4d40996ddc9a288fe157d617bfc6112307096',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -11,9 +11,9 @@
),
'versions' => array(
'__root__' => array(
- 'pretty_version' => '1.0.0+no-version-set',
- 'version' => '1.0.0.0',
- 'reference' => NULL,
+ 'pretty_version' => 'dev-master',
+ 'version' => 'dev-master',
+ 'reference' => '16f4d40996ddc9a288fe157d617bfc6112307096',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),