modif composer.json

pull/6/head
Maxime POINT 1 year ago
parent 16f4d40996
commit 2bfceb3b6d

@ -5,6 +5,10 @@
<sourceFolder url="file://$MODULE_DIR$/mvc_PSR4_twig/config" isTestSource="false" packagePrefix="config\" />
<sourceFolder url="file://$MODULE_DIR$/mvc_PSR4_twig/controleur" isTestSource="false" packagePrefix="controleur\" />
<sourceFolder url="file://$MODULE_DIR$/mvc_PSR4_twig/metier" isTestSource="false" packagePrefix="modeles\" />
<sourceFolder url="file://$MODULE_DIR$/fluxRSS/DAL" isTestSource="false" packagePrefix="DAL\" />
<sourceFolder url="file://$MODULE_DIR$/fluxRSS/config" isTestSource="false" packagePrefix="config\" />
<sourceFolder url="file://$MODULE_DIR$/fluxRSS/controleur" isTestSource="false" packagePrefix="controleur\" />
<sourceFolder url="file://$MODULE_DIR$/fluxRSS/model" isTestSource="false" packagePrefix="model\" />
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
<excludeFolder url="file://$MODULE_DIR$/vendor/twig/twig" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-mbstring" />

@ -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'] );

@ -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'),
);

@ -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 (

@ -1,9 +1,9 @@
<?php return array(
'root' => 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(),

Loading…
Cancel
Save