Dernière fonctionnalité testées sur dev

This commit is contained in:
Emmanuel ROY 2019-12-05 18:29:10 +01:00
parent afedafc2a2
commit c3328c06b8
157 changed files with 32 additions and 38 deletions

0
README.md Normal file → Executable file
View file

1
application/class/Application.php Normal file → Executable file
View file

@ -19,6 +19,7 @@ class Application
$dispacher = new Dispacher();
$this->route = $dispacher->route;
//$this->route = NULL;
}
public function launch(){

0
application/class/Asynchonous.php Normal file → Executable file
View file

0
application/class/Bdd.php Normal file → Executable file
View file

1
application/class/Browser.php Normal file → Executable file
View file

@ -12,7 +12,6 @@ class Browser
public function __construct()
{
$this->userAgent = $_SERVER['HTTP_USER_AGENT'];
$this->user = $this->get_browser_name();
}

0
application/class/Caracter.php Normal file → Executable file
View file

11
application/class/Controlleur.php Normal file → Executable file
View file

@ -28,11 +28,10 @@ class Controlleur{
$conduitRoute = "\\" . $conduit[0];
$method = strtolower($conduit[1]);
$class = new $conduitRoute();
$class->initialize($application->route);
$class = $class->initialize($application->route);
$this->vue = new VueVide();
ob_start();
$class->$method();
$this->vue->ecran = ob_get_clean();
$this->vue->ecran = $class->$method();
} else if ($application->url->page['control']) {
$url_params = $application->url->page['params'];
require TRAITEMENT_PATH . DIRECTORY_SEPARATOR . $application->url->page['name'] . '.php';
@ -59,9 +58,7 @@ class Controlleur{
$method = strtolower($application->http->method);
$this->vue = new VueVide();
ob_start();
$reponse->$method();
$this->vue->ecran = ob_get_clean();
$this->vue->ecran = $reponse->$method();
return;
}

0
application/class/ControlleurAction.php Normal file → Executable file
View file

2
application/class/Dispacher.php Normal file → Executable file
View file

@ -18,7 +18,7 @@ class Dispacher
public function __construct()
{
echo $_SERVER['REQUEST_URI'];
//echo $_SERVER['REQUEST_URI'];
//Avoid callback from empty homepage
if ($_SERVER['REQUEST_URI'] == '/' || $_SERVER['REQUEST_URI'] == '') {
$this->route = NULL;

0
application/class/Dumper.php Normal file → Executable file
View file

0
application/class/HttpMethod.php Normal file → Executable file
View file

0
application/class/HttpMethodRequete.php Normal file → Executable file
View file

4
application/class/Implement/Action.php Normal file → Executable file
View file

@ -4,12 +4,12 @@
namespace MVC\Classe\Implement;
class Action
{
public function render($view, $data)
{
//ob_start();
$paths = new \SplPriorityQueue;
@ -21,7 +21,5 @@ class Action
return $renderer->render($view, $data);
//return ob_get_clean();
}
}

2
application/class/Implement/Conduit.php Normal file → Executable file
View file

@ -17,6 +17,6 @@ class Conduit extends Action
}
}
}
return;
return $this;
}
}

View file

View file

0
application/class/Implement/HttpReponse.php Normal file → Executable file
View file

0
application/class/Implement/RestReponse.php Normal file → Executable file
View file

0
application/class/Logger.php Normal file → Executable file
View file

0
application/class/Modele.php Normal file → Executable file
View file

0
application/class/Modular.php Normal file → Executable file
View file

0
application/class/ModularRegister.php Normal file → Executable file
View file

0
application/class/Session.php Normal file → Executable file
View file

0
application/class/Tri.php Normal file → Executable file
View file

0
application/class/Url.php Normal file → Executable file
View file

0
application/class/Vue.php Normal file → Executable file
View file

0
application/class/VueVide.php Normal file → Executable file
View file

0
application/config/authentification-config-example.php Normal file → Executable file
View file

0
application/config/define-constantes.php Normal file → Executable file
View file

0
application/config/files/routing.yml Normal file → Executable file
View file

0
application/include/actions/DefaultAction.php Normal file → Executable file
View file

6
application/include/conduits/FooConduit.php Normal file → Executable file
View file

@ -8,13 +8,15 @@ class FooConduit extends Conduit
// Route('/foo')
public function index()
{
$this->render('foo', ['page_title' => 'Foo', 'description' => 'FooConduit']);
echo "blob of foo";
return $this->render('foo', array('page_title' => 'Foo', 'description' => 'FooConduit'));
}
// Route('/foo/{id}')
public function load()
{
$this->render('foo', array('page_title' => 'Foo', 'description' => 'FooConduit', 'id' => $this->id));
echo "load of foo";
return $this->render('foo', array('page_title' => 'Foo', 'description' => 'FooConduit', 'id' => $this->id));
}
}

View file

0
application/include/controlleurs/ErrorHttpReponse.php Normal file → Executable file
View file

0
application/include/controlleurs/accueil.php Normal file → Executable file
View file

0
application/include/controlleurs/authentification.php Normal file → Executable file
View file

0
application/include/controlleurs/compte.php Normal file → Executable file
View file

0
application/include/controlleurs/error.php Normal file → Executable file
View file

0
application/include/controlleurs/syf43.php Normal file → Executable file
View file

0
application/include/controlleurs/syf51.php Normal file → Executable file
View file

0
application/include/modeles/accueil.model Normal file → Executable file
View file

0
application/include/modeles/authentification.model Normal file → Executable file
View file

0
application/include/modeles/compte.model Normal file → Executable file
View file

0
application/include/modeles/error.model Normal file → Executable file
View file

0
application/include/modeles/syf43.model Normal file → Executable file
View file

0
application/include/modeles/syf51.model Normal file → Executable file
View file

0
application/include/vues/cache/.gitignore vendored Normal file → Executable file
View file

0
application/include/vues/layout/body.blade.php Normal file → Executable file
View file

0
application/include/vues/system/system.blade.php Normal file → Executable file
View file

2
application/include/vues/view/accueil.blade.php Normal file → Executable file
View file

@ -16,7 +16,7 @@
{{\MVC\Classe\ControlleurAction::inserer('default',[])}}
{{\MVC\Classe\ControlleurAction::inserer('default.default',[4,5,6])}}
{{\MVC\Classe\ControlleurAction::inserer('default.variableSlug',['var1','var2','var3'])}}
{{\MVC\Classe\ControlleurAction::inserer('default.makeHttp11',[])}}
{{--\MVC\Classe\ControlleurAction::inserer('default.makeHttp11',[])--}}
@endsection

0
application/include/vues/view/action.blade.php Normal file → Executable file
View file

View file

0
application/include/vues/view/compte.blade.php Normal file → Executable file
View file

0
application/include/vues/view/error.blade.php Normal file → Executable file
View file

32
application/include/vues/view/foo.blade.php Normal file → Executable file
View file

@ -1,18 +1,16 @@
@extends('body')
@section('sidebar')
@parent
<p>This is appended to the master sidebar.</p>
@endsection
@section('content')
<h1>Foo</h1>
<br/><br/><br/>
<a href="{{ \MVC\Classe\Url::link_rewrite(false, 'authentification', []) }}">S'authentifier ?</a>
<hr/>
Variable Loader:
{{ $id ? $id : 'init' }}
@endsection
<html>
<head>
<title>App Name</title>
</head>
<body>
<div class="container">
Foo Controlleur
@if (isset($id))
{{$id}}
@else
id not exist
@endif
</div>
</body>
</html>

0
application/include/vues/view/syf43.blade.php Normal file → Executable file
View file

0
application/include/vues/view/syf51.blade.php Normal file → Executable file
View file

0
application/logs/hybridauth.log Normal file → Executable file
View file

0
application/modules/setup/registre.model Normal file → Executable file
View file

0
application/modules/syf43/.env Normal file → Executable file
View file

0
application/modules/syf43/.gitignore vendored Normal file → Executable file
View file

0
application/modules/syf43/bin/console Normal file → Executable file
View file

0
application/modules/syf43/composer.json Normal file → Executable file
View file

0
application/modules/syf43/composer.lock generated Normal file → Executable file
View file

0
application/modules/syf43/config/bootstrap.php Normal file → Executable file
View file

0
application/modules/syf43/config/bundles.php Normal file → Executable file
View file

0
application/modules/syf43/config/packages/cache.yaml Normal file → Executable file
View file

View file

View file

0
application/modules/syf43/config/packages/routing.yaml Normal file → Executable file
View file

View file

View file

View file

0
application/modules/syf43/config/packages/twig.yaml Normal file → Executable file
View file

0
application/modules/syf43/config/routes.yaml Normal file → Executable file
View file

View file

0
application/modules/syf43/config/routes/dev/twig.yaml Normal file → Executable file
View file

0
application/modules/syf43/config/services.yaml Normal file → Executable file
View file

0
application/modules/syf43/public/index.php Normal file → Executable file
View file

0
application/modules/syf43/src/Controller/.gitignore vendored Normal file → Executable file
View file

View file

0
application/modules/syf43/src/Kernel.php Normal file → Executable file
View file

0
application/modules/syf43/symfony.lock Normal file → Executable file
View file

0
application/modules/syf43/templates/base.html.twig Normal file → Executable file
View file

View file

View file

0
application/modules/syf51/.env Normal file → Executable file
View file

0
application/modules/syf51/.env.test Normal file → Executable file
View file

0
application/modules/syf51/.gitignore vendored Normal file → Executable file
View file

0
application/modules/syf51/composer.json Normal file → Executable file
View file

0
application/modules/syf51/composer.lock generated Normal file → Executable file
View file

0
application/modules/syf51/config/bootstrap.php Normal file → Executable file
View file

0
application/modules/syf51/config/bundles.php Normal file → Executable file
View file

0
application/modules/syf51/config/packages/cache.yaml Normal file → Executable file
View file

View file

View file

View file

View file

View file

View file

Some files were not shown because too many files have changed in this diff Show more