aplicationn de la verification

pull/22/head^2
brongniart 5 months ago
parent 5192291ae5
commit 44a9cff478

@ -9,7 +9,8 @@
"Controleur\\": "src/Controleur/", "Controleur\\": "src/Controleur/",
"Model\\": "src/Model/", "Model\\": "src/Model/",
"Gateway\\": "src/Gateway/", "Gateway\\": "src/Gateway/",
"Entity\\": "src/Entity/" "Entity\\": "src/Entity/",
"Verification\\": "src/Verification/"
} }
} }
} }

@ -12,7 +12,7 @@ $base = '';
$login = ''; $login = '';
$mdp = ''; $mdp = '';
$racine='/~marocher8/WF-Website'; $racine='/~kekentin/WF/WF-Website';
//Vues //Vues

@ -21,6 +21,7 @@ use Twig\Error\RuntimeError;
use Twig\Error\SyntaxError; use Twig\Error\SyntaxError;
use Twig\Loader\FilesystemLoader; use Twig\Loader\FilesystemLoader;
use Verification\Verification;
class UserControler { class UserControler {
@ -40,7 +41,7 @@ class UserControler {
public function profil() { public function profil() {
global $vues; global $vues;
$p = $this->uMod->getUsername($_SESSION["user"]); $p = $this->uMod->getUsername(Verification::verifChar($_SESSION["user"]));
require_once $vues['profil']; require_once $vues['profil'];
} }
@ -49,7 +50,9 @@ class UserControler {
public function addComment(){ public function addComment(){
global $racine; global $racine;
$id = $_POST['idQuote']; $id = $_POST['idQuote'];
$this->cMod->createComment($_POST['content'],$_POST['idQuote'],$this->uMod->getIdByUsername($_SESSION['user'])); $this->cMod->createComment(Verification::verifChar($_POST['content']),
Verification::verifChar($_POST['idQuote']),
$this->uMod->getIdByUsername(Verification::verifChar($_SESSION['user'])));
header("Location:".$racine."/quote/$id"); header("Location:".$racine."/quote/$id");
} }
@ -81,7 +84,7 @@ class UserControler {
switch ($action) { switch ($action) {
case 'canswer': case 'canswer':
if ($this->CorrectAnswer()) if ($this->CorrectAnswer())
$_SESSION['score'] = isset($_SESSION['score']) ? ($_SESSION['score'] + 1) : 1; $_SESSION['score'] = Verification::verifChar( isset( $_SESSION['score']) ? ($_SESSION['score'] + 1) : 1 ) ;
$this->continueQuiz($id, $nb_questions); $this->continueQuiz($id, $nb_questions);
break; break;
default: default:
@ -91,8 +94,8 @@ class UserControler {
// page erreur // page erreur
break; break;
default: default:
$_SESSION['score'] = $_SESSION['score'] ?? 0; $_SESSION['score'] = Verification::verifChar($_SESSION['score'] ?? 0);
$this->showQuestion($id, $_SESSION['no_question'] ?? 0); $this->showQuestion($id, Verification::verifChar($_SESSION['no_question'] ?? 0));
break; break;
} }
} }
@ -107,7 +110,7 @@ class UserControler {
{ {
global $racine; global $racine;
$score = $_SESSION['score']; $score = $_SESSION['score'];
$_SESSION['no_question'] = isset($_SESSION['no_question']) ? ($_SESSION['no_question'] + 1) : 1; $_SESSION['no_question'] = Verification::verifChar( isset($_SESSION['no_question']) ? ($_SESSION['no_question'] + 1) : 1);
if ($_SESSION['no_question'] >= $total_questions) { if ($_SESSION['no_question'] >= $total_questions) {
session_destroy(); session_destroy();
$this->endQuiz($id_quiz, $score); $this->endQuiz($id_quiz, $score);
@ -136,10 +139,10 @@ class UserControler {
public function CorrectAnswer() : bool public function CorrectAnswer() : bool
{ {
$answera = $_POST['answera'] ?? null; $answera = Verification::verifChar($_POST['answera'] ?? null);
$answerb = $_POST['answerb'] ?? null; $answerb = Verification::verifChar($_POST['answerb'] ?? null);
$answerc = $_POST['answerc'] ?? null; $answerc = Verification::verifChar($_POST['answerc'] ?? null);
$answerd = $_POST['answerd'] ?? null; $answerd = Verification::verifChar($_POST['answerd'] ?? null);
$id= null; $id= null;
$answer = null; $answer = null;
@ -198,7 +201,7 @@ class UserControler {
public function addFav(array $arg){ public function addFav(array $arg){
global $racine; global $racine;
$id= $arg['id'] ?? 1; $id= $arg['id'] ?? 1;
$this->uMod->addFavorite($_SESSION["user"],$id); $this->uMod->addFavorite(Verification::verifChar($_SESSION["user"]),$id);
header("Location:" . $racine . "/quote/$id"); header("Location:" . $racine . "/quote/$id");
} }
@ -206,7 +209,7 @@ class UserControler {
public function supFav(array $arg){ public function supFav(array $arg){
global $racine; global $racine;
$id= $arg['id'] ?? 1; $id= $arg['id'] ?? 1;
$this->uMod->supFavorite($_SESSION["user"],$id); $this->uMod->supFavorite(Verification::verifChar($_SESSION["user"]),$id);
header("Location:". $racine ."/quote/$id"); header("Location:". $racine ."/quote/$id");
} }
} }

@ -13,7 +13,7 @@ use Twig\Error\LoaderError;
use Twig\Error\RuntimeError; use Twig\Error\RuntimeError;
use Twig\Error\SyntaxError; use Twig\Error\SyntaxError;
use Verification\VerificationChar; use Verification\Verification;
Class VisitorControler { Class VisitorControler {
@ -28,6 +28,7 @@ Class VisitorControler {
private array $errors; private array $errors;
/** /**
* @throws SyntaxError * @throws SyntaxError
* @throws RuntimeError * @throws RuntimeError
@ -69,9 +70,9 @@ Class VisitorControler {
public function search(array $arg){ public function search(array $arg){
global $vues; global $vues;
$type = ($_POST['type'] ?? ""); $type = ( Verification::verifChar( $_POST['type'] ?? ""));
$search = ( VerificationChar::verifChar( $_POST['search'] ) ?? NULL); $search = ( Verification::verifChar( $_POST['search'] ?? NULL));
$filtre = ($arg['filtre'] ?? []); $filtre = ( Verification::verifArrayChar( $arg['filtre'] ?? []));
$tq=$this->sMod->searchQuote($type,$search,$filtre); $tq=$this->sMod->searchQuote($type,$search,$filtre);
@ -116,8 +117,8 @@ Class VisitorControler {
global $vues,$racine; global $vues,$racine;
if ($_POST) if ($_POST)
{ {
$pseudo = $_POST['pseudo'] ?? null; $pseudo = Verification::verifChar($_POST['pseudo'] ?? null);
$mdp = $_POST['mdp'] ?? null; $mdp = Verification::verifChar($_POST['mdp'] ?? null);
$user = $this -> uMod -> getUsername($pseudo); $user = $this -> uMod -> getUsername($pseudo);
@ -157,10 +158,10 @@ Class VisitorControler {
global $vues,$racine; global $vues,$racine;
if ($_POST) { if ($_POST) {
$pseudo = $_POST['pseudo'] ?? null; $pseudo = Verification::verifChar($_POST['pseudo'] ?? null);
$email = $_POST['email'] ?? null; $email = Verification::verifChar($_POST['email'] ?? null);
$mdp = $_POST['mdp'] ?? null; $mdp = Verification::verifChar($_POST['mdp'] ?? null);
$cmdp = $_POST['cmdp'] ?? null; $cmdp = Verification::verifChar($_POST['cmdp'] ?? null);
if ($mdp != $cmdp) { if ($mdp != $cmdp) {
$errors[2] = "Mots de passe incorrects"; $errors[2] = "Mots de passe incorrects";
@ -192,8 +193,8 @@ Class VisitorControler {
} }
else echo $this->uMod->insertUser($pseudo, $email, $hmdp); else echo $this->uMod->insertUser($pseudo, $email, $hmdp);
$_SESSION["role"] = 'user'; $_SESSION["role"] = Verification::verifChar('user');
$_SESSION["user"] = $pseudo; $_SESSION["user"] = Verification::verifChar($pseudo);
header("Location: ". $racine); header("Location: ". $racine);
} }

@ -0,0 +1,44 @@
<?php
namespace Verification;
class Verification
{
public static function verifChar(?string $text) : ?string{
if($text==NULL){
return NULL;
}
$charInterdi=['|','/','\\','%','$','=','<','>','(',')'];
$chaineInterdi=["AND","OR","WHERE","FROM","SELECT"];
$textVerif="";
foreach( str_split($text,1) as $char){
if( !in_array($char,$charInterdi) ){
$textVerif=$textVerif.$char;
}
}
$text=$textVerif;
$textVerif="";
$tabText=explode(" ",$text);
for( $i=0 ; $i<count($tabText) ; $i++){
if( !in_array( strtoupper($tabText[$i]) , $chaineInterdi )){
$textVerif=$textVerif.$tabText[$i];
if($i != count($tabText)-1){
$textVerif=$textVerif." ";
}
}
}
return $textVerif;
}
public static function verifArrayChar(?array $tabText) : ?array{
for( $i=0 ; $i<count($tabText) ; $i++){
$tabText[$i]=$this->verifChar($tabText[$i]);
}
return $tabText;
}
}
?>

@ -1,19 +0,0 @@
<?php
namespace Verification{
class VerificationChar
{
public static function verifChar(string $text) : string{
$charInterdi=['&','|','/','\\','%','$'];
$textVerif="";
foreach( $text as $char){
if( !in_array($char,$charInterdi) ){
$textVerif=$textVerif+$char;
}
}
return $textVerif;
}
}
}
?>

@ -1,25 +1,25 @@
<?php <?php
// autoload.php @generated by Composer // autoload.php @generated by Composer
if (PHP_VERSION_ID < 50600) { if (PHP_VERSION_ID < 50600) {
if (!headers_sent()) { if (!headers_sent()) {
header('HTTP/1.1 500 Internal Server Error'); header('HTTP/1.1 500 Internal Server Error');
} }
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
if (!ini_get('display_errors')) { if (!ini_get('display_errors')) {
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
fwrite(STDERR, $err); fwrite(STDERR, $err);
} elseif (!headers_sent()) { } elseif (!headers_sent()) {
echo $err; echo $err;
} }
} }
trigger_error( trigger_error(
$err, $err,
E_USER_ERROR E_USER_ERROR
); );
} }
require_once __DIR__ . '/composer/autoload_real.php'; require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c::getLoader(); return ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c::getLoader();

File diff suppressed because it is too large Load Diff

@ -1,21 +1,21 @@
Copyright (c) Nils Adermann, Jordi Boggiano Copyright (c) Nils Adermann, Jordi Boggiano
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions: to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software. copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.

@ -1,13 +1,13 @@
<?php <?php
// autoload_classmap.php @generated by Composer // autoload_classmap.php @generated by Composer
$vendorDir = dirname(__DIR__); $vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir); $baseDir = dirname($vendorDir);
return array( return array(
'AltoRouter' => $vendorDir . '/altorouter/altorouter/AltoRouter.php', 'AltoRouter' => $vendorDir . '/altorouter/altorouter/AltoRouter.php',
'CURLStringFile' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php', 'CURLStringFile' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php',
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
'ReturnTypeWillChange' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php', 'ReturnTypeWillChange' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php',
); );

@ -1,17 +1,17 @@
<?php <?php
// autoload_files.php @generated by Composer // autoload_files.php @generated by Composer
$vendorDir = dirname(__DIR__); $vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir); $baseDir = dirname($vendorDir);
return array( return array(
'6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php',
'320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php', '320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
'23c18046f52bef3eea034657bafda50f' => $vendorDir . '/symfony/polyfill-php81/bootstrap.php', '23c18046f52bef3eea034657bafda50f' => $vendorDir . '/symfony/polyfill-php81/bootstrap.php',
'89efb1254ef2d1c5d80096acd12c4098' => $vendorDir . '/twig/twig/src/Resources/core.php', '89efb1254ef2d1c5d80096acd12c4098' => $vendorDir . '/twig/twig/src/Resources/core.php',
'ffecb95d45175fd40f75be8a23b34f90' => $vendorDir . '/twig/twig/src/Resources/debug.php', 'ffecb95d45175fd40f75be8a23b34f90' => $vendorDir . '/twig/twig/src/Resources/debug.php',
'c7baa00073ee9c61edf148c51917cfb4' => $vendorDir . '/twig/twig/src/Resources/escaper.php', 'c7baa00073ee9c61edf148c51917cfb4' => $vendorDir . '/twig/twig/src/Resources/escaper.php',
'f844ccf1d25df8663951193c3fc307c8' => $vendorDir . '/twig/twig/src/Resources/string_loader.php', 'f844ccf1d25df8663951193c3fc307c8' => $vendorDir . '/twig/twig/src/Resources/string_loader.php',
); );

@ -1,9 +1,9 @@
<?php <?php
// autoload_namespaces.php @generated by Composer // autoload_namespaces.php @generated by Composer
$vendorDir = dirname(__DIR__); $vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir); $baseDir = dirname($vendorDir);
return array( return array(
); );

@ -1,17 +1,18 @@
<?php <?php
// autoload_psr4.php @generated by Composer // autoload_psr4.php @generated by Composer
$vendorDir = dirname(__DIR__); $vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir); $baseDir = dirname($vendorDir);
return array( return array(
'Twig\\' => array($vendorDir . '/twig/twig/src'), 'Verification\\' => array($baseDir . '/src/Verification'),
'Symfony\\Polyfill\\Php81\\' => array($vendorDir . '/symfony/polyfill-php81'), 'Twig\\' => array($vendorDir . '/twig/twig/src'),
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'), 'Symfony\\Polyfill\\Php81\\' => array($vendorDir . '/symfony/polyfill-php81'),
'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'), 'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
'Model\\' => array($baseDir . '/src/Model'), 'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
'Gateway\\' => array($baseDir . '/src/Gateway'), 'Model\\' => array($baseDir . '/src/Model'),
'Entity\\' => array($baseDir . '/src/Entity'), 'Gateway\\' => array($baseDir . '/src/Gateway'),
'Controleur\\' => array($baseDir . '/src/Controleur'), 'Entity\\' => array($baseDir . '/src/Entity'),
); 'Controleur\\' => array($baseDir . '/src/Controleur'),
);

@ -1,50 +1,50 @@
<?php <?php
// autoload_real.php @generated by Composer // autoload_real.php @generated by Composer
class ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c class ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c
{ {
private static $loader; private static $loader;
public static function loadClassLoader($class) public static function loadClassLoader($class)
{ {
if ('Composer\Autoload\ClassLoader' === $class) { if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php'; require __DIR__ . '/ClassLoader.php';
} }
} }
/** /**
* @return \Composer\Autoload\ClassLoader * @return \Composer\Autoload\ClassLoader
*/ */
public static function getLoader() public static function getLoader()
{ {
if (null !== self::$loader) { if (null !== self::$loader) {
return self::$loader; return self::$loader;
} }
require __DIR__ . '/platform_check.php'; require __DIR__ . '/platform_check.php';
spl_autoload_register(array('ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c', 'loadClassLoader'), true, true); spl_autoload_register(array('ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c', 'loadClassLoader')); spl_autoload_unregister(array('ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php'; require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::getInitializer($loader)); call_user_func(\Composer\Autoload\ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::getInitializer($loader));
$loader->register(true); $loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$files; $filesToLoad = \Composer\Autoload\ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) { $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
require $file; require $file;
} }
}, null, null); }, null, null);
foreach ($filesToLoad as $fileIdentifier => $file) { foreach ($filesToLoad as $fileIdentifier => $file) {
$requireFile($fileIdentifier, $file); $requireFile($fileIdentifier, $file);
} }
return $loader; return $loader;
} }
} }

@ -1,100 +1,108 @@
<?php <?php
// autoload_static.php @generated by Composer // autoload_static.php @generated by Composer
namespace Composer\Autoload; namespace Composer\Autoload;
class ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c class ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c
{ {
public static $files = array ( public static $files = array (
'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
'23c18046f52bef3eea034657bafda50f' => __DIR__ . '/..' . '/symfony/polyfill-php81/bootstrap.php', '23c18046f52bef3eea034657bafda50f' => __DIR__ . '/..' . '/symfony/polyfill-php81/bootstrap.php',
'89efb1254ef2d1c5d80096acd12c4098' => __DIR__ . '/..' . '/twig/twig/src/Resources/core.php', '89efb1254ef2d1c5d80096acd12c4098' => __DIR__ . '/..' . '/twig/twig/src/Resources/core.php',
'ffecb95d45175fd40f75be8a23b34f90' => __DIR__ . '/..' . '/twig/twig/src/Resources/debug.php', 'ffecb95d45175fd40f75be8a23b34f90' => __DIR__ . '/..' . '/twig/twig/src/Resources/debug.php',
'c7baa00073ee9c61edf148c51917cfb4' => __DIR__ . '/..' . '/twig/twig/src/Resources/escaper.php', 'c7baa00073ee9c61edf148c51917cfb4' => __DIR__ . '/..' . '/twig/twig/src/Resources/escaper.php',
'f844ccf1d25df8663951193c3fc307c8' => __DIR__ . '/..' . '/twig/twig/src/Resources/string_loader.php', 'f844ccf1d25df8663951193c3fc307c8' => __DIR__ . '/..' . '/twig/twig/src/Resources/string_loader.php',
); );
public static $prefixLengthsPsr4 = array ( public static $prefixLengthsPsr4 = array (
'T' => 'V' =>
array ( array (
'Twig\\' => 5, 'Verification\\' => 13,
), ),
'S' => 'T' =>
array ( array (
'Symfony\\Polyfill\\Php81\\' => 23, 'Twig\\' => 5,
'Symfony\\Polyfill\\Mbstring\\' => 26, ),
'Symfony\\Polyfill\\Ctype\\' => 23, 'S' =>
), array (
'M' => 'Symfony\\Polyfill\\Php81\\' => 23,
array ( 'Symfony\\Polyfill\\Mbstring\\' => 26,
'Model\\' => 6, 'Symfony\\Polyfill\\Ctype\\' => 23,
), ),
'G' => 'M' =>
array ( array (
'Gateway\\' => 8, 'Model\\' => 6,
), ),
'E' => 'G' =>
array ( array (
'Entity\\' => 7, 'Gateway\\' => 8,
), ),
'C' => 'E' =>
array ( array (
'Controleur\\' => 11, 'Entity\\' => 7,
), ),
); 'C' =>
array (
public static $prefixDirsPsr4 = array ( 'Controleur\\' => 11,
'Twig\\' => ),
array ( );
0 => __DIR__ . '/..' . '/twig/twig/src',
), public static $prefixDirsPsr4 = array (
'Symfony\\Polyfill\\Php81\\' => 'Verification\\' =>
array ( array (
0 => __DIR__ . '/..' . '/symfony/polyfill-php81', 0 => __DIR__ . '/../..' . '/src/Verification',
), ),
'Symfony\\Polyfill\\Mbstring\\' => 'Twig\\' =>
array ( array (
0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring', 0 => __DIR__ . '/..' . '/twig/twig/src',
), ),
'Symfony\\Polyfill\\Ctype\\' => 'Symfony\\Polyfill\\Php81\\' =>
array ( array (
0 => __DIR__ . '/..' . '/symfony/polyfill-ctype', 0 => __DIR__ . '/..' . '/symfony/polyfill-php81',
), ),
'Model\\' => 'Symfony\\Polyfill\\Mbstring\\' =>
array ( array (
0 => __DIR__ . '/../..' . '/src/Model', 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
), ),
'Gateway\\' => 'Symfony\\Polyfill\\Ctype\\' =>
array ( array (
0 => __DIR__ . '/../..' . '/src/Gateway', 0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
), ),
'Entity\\' => 'Model\\' =>
array ( array (
0 => __DIR__ . '/../..' . '/src/Entity', 0 => __DIR__ . '/../..' . '/src/Model',
), ),
'Controleur\\' => 'Gateway\\' =>
array ( array (
0 => __DIR__ . '/../..' . '/src/Controleur', 0 => __DIR__ . '/../..' . '/src/Gateway',
), ),
); 'Entity\\' =>
array (
public static $classMap = array ( 0 => __DIR__ . '/../..' . '/src/Entity',
'AltoRouter' => __DIR__ . '/..' . '/altorouter/altorouter/AltoRouter.php', ),
'CURLStringFile' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php', 'Controleur\\' =>
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', array (
'ReturnTypeWillChange' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php', 0 => __DIR__ . '/../..' . '/src/Controleur',
); ),
);
public static function getInitializer(ClassLoader $loader)
{ public static $classMap = array (
return \Closure::bind(function () use ($loader) { 'AltoRouter' => __DIR__ . '/..' . '/altorouter/altorouter/AltoRouter.php',
$loader->prefixLengthsPsr4 = ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$prefixLengthsPsr4; 'CURLStringFile' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php',
$loader->prefixDirsPsr4 = ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$prefixDirsPsr4; 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
$loader->classMap = ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$classMap; 'ReturnTypeWillChange' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php',
);
}, null, ClassLoader::class);
} public static function getInitializer(ClassLoader $loader)
} {
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$classMap;
}, null, ClassLoader::class);
}
}

@ -1,26 +1,26 @@
<?php <?php
// platform_check.php @generated by Composer // platform_check.php @generated by Composer
$issues = array(); $issues = array();
if (!(PHP_VERSION_ID >= 80100)) { if (!(PHP_VERSION_ID >= 80100)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.'; $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
} }
if ($issues) { if ($issues) {
if (!headers_sent()) { if (!headers_sent()) {
header('HTTP/1.1 500 Internal Server Error'); header('HTTP/1.1 500 Internal Server Error');
} }
if (!ini_get('display_errors')) { if (!ini_get('display_errors')) {
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
} elseif (!headers_sent()) { } elseif (!headers_sent()) {
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
} }
} }
trigger_error( trigger_error(
'Composer detected issues in your platform: ' . implode(' ', $issues), 'Composer detected issues in your platform: ' . implode(' ', $issues),
E_USER_ERROR E_USER_ERROR
); );
} }

Loading…
Cancel
Save