Browse Source

Fixed namespace

master
Martins Eglitis 2 years ago
parent
commit
2e3bc1c812
7 changed files with 11 additions and 11 deletions
  1. +1
    -1
      composer.json
  2. +1
    -1
      public/index.php
  3. +1
    -1
      src/Misc/Bootstrap.php
  4. +3
    -3
      src/Misc/Routes.php
  5. +1
    -1
      src/Models/Main/TemplateModel.php
  6. +1
    -1
      src/Models/Main/UrlModel.php
  7. +3
    -3
      src/Views/Main/MainView.php

+ 1
- 1
composer.json View File

@@ -23,7 +23,7 @@
},
"autoload": {
"psr-4": {
"Project\\": "src/"
"Skeleton\\": "src/"
}
}
}

+ 1
- 1
public/index.php View File

@@ -4,6 +4,6 @@ $root = filter_input(INPUT_SERVER, "DOCUMENT_ROOT");

require $root."/../vendor/autoload.php";

$frontController = new \Project\Misc\Bootstrap();
$frontController = new \Skeleton\Misc\Bootstrap();

$frontController->init();

+ 1
- 1
src/Misc/Bootstrap.php View File

@@ -1,6 +1,6 @@
<?php

namespace Project\Misc;
namespace Skeleton\Misc;

use FastRoute\RouteCollector;
use Whoops\Handler\Handler;


+ 3
- 3
src/Misc/Routes.php View File

@@ -1,8 +1,8 @@
<?php

use Project\Models\Main\TemplateModel;
use Project\Models\Main\UrlModel;
use Project\Views\Main\MainView;
use Skeleton\Models\Main\TemplateModel;
use Skeleton\Models\Main\UrlModel;
use Skeleton\Views\Main\MainView;

return [
[


+ 1
- 1
src/Models/Main/TemplateModel.php View File

@@ -1,6 +1,6 @@
<?php

namespace Project\Models\Main;
namespace Skeleton\Models\Main;

class TemplateModel
{


+ 1
- 1
src/Models/Main/UrlModel.php View File

@@ -1,6 +1,6 @@
<?php

namespace Project\Models\Main;
namespace Skeleton\Models\Main;

class UrlModel
{


+ 3
- 3
src/Views/Main/MainView.php View File

@@ -1,9 +1,9 @@
<?php

namespace Project\Views\Main;
namespace Skeleton\Views\Main;

use Project\Models\Main\TemplateModel;
use Project\Models\Main\UrlModel;
use Skeleton\Models\Main\TemplateModel;
use Skeleton\Models\Main\UrlModel;

class MainView
{


Loading…
Cancel
Save