quelques modifications pour les test du Conduit

This commit is contained in:
Emmanuel ROY 2019-12-05 18:34:13 +01:00
parent c3328c06b8
commit 21073bb54e
12 changed files with 12 additions and 77 deletions

3
.idea/.gitignore vendored
View file

@ -1,3 +0,0 @@
# Default ignored files
/workspace.xml

View file

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/../MVC-Modular-WindWalkerapplication/objets" isTestSource="false" packagePrefix="MVC\Objets\" />
<sourceFolder url="file://$MODULE_DIR$/../MVC-Modular-WindWalkerapplication/class" isTestSource="false" packagePrefix="MVC\Classe\" />
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
<excludeFolder url="file://$MODULE_DIR$/vendor/hybridauth/hybridauth" />
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/container" />
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/events" />
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/filesystem" />
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/support" />
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/view" />
<excludeFolder url="file://$MODULE_DIR$/vendor/neitanod/forceutf8" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/finder" />
<excludeFolder url="file://$MODULE_DIR$/vendor/windwalker/renderer" />
<excludeFolder url="file://$MODULE_DIR$/vendor/windwalker/structure" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View file

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/MVC---Objet.iml" filepath="$PROJECT_DIR$/.idea/MVC---Objet.iml" />
</modules>
</component>
</project>

View file

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PhpIncludePathManager">
<include_path>
<path value="$PROJECT_DIR$/vendor/windwalker/renderer" />
<path value="$PROJECT_DIR$/vendor/illuminate/view" />
<path value="$PROJECT_DIR$/vendor/composer" />
<path value="$PROJECT_DIR$/vendor/illuminate/support" />
<path value="$PROJECT_DIR$/vendor/illuminate/filesystem" />
<path value="$PROJECT_DIR$/vendor/illuminate/events" />
<path value="$PROJECT_DIR$/vendor/illuminate/container" />
<path value="$PROJECT_DIR$/vendor/symfony/finder" />
<path value="$PROJECT_DIR$/vendor/windwalker/structure" />
<path value="$PROJECT_DIR$/vendor/hybridauth/hybridauth" />
<path value="$PROJECT_DIR$/vendor/neitanod/forceutf8" />
</include_path>
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="7.1" />
</project>

View file

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View file

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

View file

@ -28,7 +28,7 @@ class Controlleur{
$conduitRoute = "\\" . $conduit[0];
$method = strtolower($conduit[1]);
$class = new $conduitRoute();
$class = $class->initialize($application->route);
$class->initialize($application->route);
$this->vue = new VueVide();
$this->vue->ecran = $class->$method();

View file

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

View file

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

View file

@ -16,6 +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',[])--}}
@endsection

View file

@ -1,16 +1,16 @@
<html>
<head>
<title>App Name</title>
</head>
<body>
@extends('body')
<div class="container">
@section('sidebar')
@parent
<p>This is appended to the master sidebar.</p>
@endsection
@section('content')
Foo Controlleur
@if (isset($id))
{{$id}}
@else
id not exist
@endif
</div>
</body>
</html>
@endsection