Skip to content

Commit

Permalink
1. refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
scarwu committed Feb 9, 2022
1 parent ea738d8 commit ad361c7
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/Oni/CLI/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

namespace Oni\CLI;

use Oni\Basic;
use Oni\Loader;
use Oni\Core\Basic;
use Oni\Core\Loader;
use Oni\CLI\IO;

class App extends Basic
Expand Down
2 changes: 1 addition & 1 deletion src/Oni/CLI/IO.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Oni\CLI;

use Oni\Basic;
use Oni\Core\Basic;
use Oni\CLI\Helper\ANSIEscapeCode as AEC;

class IO extends Basic
Expand Down
2 changes: 1 addition & 1 deletion src/Oni/CLI/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Oni\CLI;

use Oni\Basic;
use Oni\Core\Basic;
use Oni\CLI\IO;

abstract class Task extends Basic
Expand Down
2 changes: 1 addition & 1 deletion src/Oni/Basic.php → src/Oni/Core/Basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @link https://github.com/scarwu/Oni
*/

namespace Oni;
namespace Oni\Core;

abstract class Basic
{
Expand Down
13 changes: 13 additions & 0 deletions src/Oni/Core/DI.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
/**
* DI
*
* @package Oni
* @author Scar Wu
* @copyright Copyright (c) Scar Wu (https://scar.tw)
* @link https://github.com/scarwu/Oni
*/

namespace Oni\Core;

final class DI {}
4 changes: 2 additions & 2 deletions src/Oni/Loader.php → src/Oni/Core/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* @link https://github.com/scarwu/Oni
*/

namespace Oni;
namespace Oni\Core;

class Loader
final class Loader
{
/**
* @var object
Expand Down
4 changes: 2 additions & 2 deletions src/Oni/Web/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

namespace Oni\Web;

use Oni\Basic;
use Oni\Loader;
use Oni\Core\Basic;
use Oni\Core\Loader;
use Oni\Web\Http\Req;
use Oni\Web\Http\Res;
use Oni\Web\View;
Expand Down
2 changes: 1 addition & 1 deletion src/Oni/Web/Controller/Ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Oni\Web\Controller;

use Oni\Basic;
use Oni\Core\Basic;
use Oni\Web\Http\Req;
use Oni\Web\Http\Res;

Expand Down
2 changes: 1 addition & 1 deletion src/Oni/Web/Controller/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Oni\Web\Controller;

use Oni\Basic;
use Oni\Core\Basic;
use Oni\Web\Http\Req;
use Oni\Web\Http\Res;
use Oni\Web\View;
Expand Down
2 changes: 1 addition & 1 deletion src/Oni/Web/Controller/Rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Oni\Web\Controller;

use Oni\Basic;
use Oni\Core\Basic;
use Oni\Web\Http\Req;
use Oni\Web\Http\Res;

Expand Down
2 changes: 1 addition & 1 deletion src/Oni/Web/Helper/HTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Oni\Web\Helper;

class HTML
final class HTML
{
/**
* Construct
Expand Down
2 changes: 1 addition & 1 deletion src/Oni/Web/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

namespace Oni\Web;

use Oni\Basic;
use Oni\Core\Basic;

class Model extends Basic {}
2 changes: 1 addition & 1 deletion src/Oni/Web/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Oni\Web;

use Oni\Basic;
use Oni\Core\Basic;

class Router extends Basic
{
Expand Down
2 changes: 1 addition & 1 deletion src/Oni/Web/Store/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace Oni\Web\Store;

use Memcached;
use Oni\Basic;
use Oni\Core\Basic;

class Cache extends Basic
{
Expand Down
2 changes: 1 addition & 1 deletion src/Oni/Web/Store/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace Oni\Web\Store;

use PDO;
use Oni\Basic;
use Oni\Core\Basic;

class Database extends Basic
{
Expand Down
2 changes: 1 addition & 1 deletion src/Oni/Web/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Oni\Web;

use Oni\Basic;
use Oni\Core\Basic;
use Oni\Web\Helper\HTML;

class View extends Basic
Expand Down

0 comments on commit ad361c7

Please sign in to comment.