diff --git a/.gitignore b/.gitignore index 169e0c1..df4666c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ .idea -*/.DS_Store -cache -vendor/ \ No newline at end of file +.composer.lock +.DS_Store +/cache +/app/Config/Development +/vendor \ No newline at end of file diff --git a/app/Cli/Commander.php b/app/Cli/Commander.php index 7249dd2..70ccd9e 100644 --- a/app/Cli/Commander.php +++ b/app/Cli/Commander.php @@ -18,7 +18,7 @@ * Class Commander * @package App\Cli */ -class Commander extends \O2System\Reactor\Cli\Commander +class Commander extends \O2System\Framework\Cli\Commander { } \ No newline at end of file diff --git a/app/Commanders/Hello.php b/app/Commanders/Hello.php index 90475fc..61e9ad3 100644 --- a/app/Commanders/Hello.php +++ b/app/Commanders/Hello.php @@ -84,7 +84,7 @@ public function optionName( $name ) */ public function execute() { - $this->__callOptions(); + parent::execute(); output()->write('Hello !'); } diff --git a/app/Config/Config.php b/app/Config/Config.php index dad5df8..969197a 100644 --- a/app/Config/Config.php +++ b/app/Config/Config.php @@ -36,7 +36,17 @@ * * @var array */ -$config[ 'language' ] = 'en-US'; +$config[ 'language' ][ 'default' ] = 'en-US'; + +/** + * Language Options + * + * @var array + */ +$config[ 'language' ][ 'options' ] = [ + 'en-US' => 'English (United States)', + 'id-ID' => 'Bahasa Indonesia' +]; /** * DateTime Timezone diff --git a/app/app.jsprop b/app/app.json similarity index 96% rename from app/app.jsprop rename to app/app.json index 437763d..8da721a 100644 --- a/app/app.jsprop +++ b/app/app.json @@ -1,23 +1,23 @@ -{ - "name": "Cli Application", - "created": "29 January 2018", - "version": "1.0.0", - "description": "Cli application example", - "copyright": "Copyright (c) 2018 - Steeve Andrian Salim", - "authors": [ - { - "name": "Steeve Andrian Salim", - "email": "steevenz@ymail.com", - "homepage": "http://o2system.id", - "role": "Founder" - } - ], - "support": { - "email": "support@o2system.id", - "issues": "https://o2system.id/support" - }, - "links": { - "info": "http://www.o2system.id/about", - "wiki": "http://www.o2system.id/wiki" - } +{ + "name": "Cli Application", + "created": "29 January 2018", + "version": "1.0.0", + "description": "Cli application example", + "copyright": "Copyright (c) 2018 - Steeve Andrian Salim", + "authors": [ + { + "name": "Steeve Andrian Salim", + "email": "steevenz@ymail.com", + "homepage": "http://o2system.id", + "role": "Founder" + } + ], + "support": { + "email": "support@o2system.id", + "issues": "https://o2system.id/support" + }, + "links": { + "info": "http://www.o2system.id/about", + "wiki": "http://www.o2system.id/wiki" + } } \ No newline at end of file diff --git a/app/console b/app/console index 25fb438..98a192b 100644 --- a/app/console +++ b/app/console @@ -1,4 +1,3 @@ -#!/usr/bin/php -q setWelcomeNote( ( new \O2System\Kernel\Cli\Writers\Text ) ->setContextualClass( \O2System\Kernel\Cli\Writers\Text::DANGER ) diff --git a/cli.php b/cli.php index 0d56a49..a1e3d36 100644 --- a/cli.php +++ b/cli.php @@ -174,6 +174,6 @@ * STARTUP O2SYSTEM * ------------------------------------------------------ */ -if ( class_exists( 'O2System\Reactor', false ) ) { - O2System\Reactor::getInstance(); +if ( class_exists( 'O2System\Framework', false ) ) { + O2System\Framework::getInstance(); } diff --git a/composer.json b/composer.json index d10be97..3bfa053 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "type": "project", "require": { "php": "^7.2.0", - "o2system/reactor": "*" + "o2system/framework": "^5.7" }, "require-dev": { "o2system/gear": "*" diff --git a/composer.lock b/composer.lock deleted file mode 100644 index 9ed3b9c..0000000 --- a/composer.lock +++ /dev/null @@ -1,1021 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", - "This file is @generated automatically" - ], - "content-hash": "dd0dc440cb100aeafb56a5637d64576b", - "packages": [ - { - "name": "filp/whoops", - "version": "2.3.1", - "source": { - "type": "git", - "url": "https://github.com/filp/whoops.git", - "reference": "bc0fd11bc455cc20ee4b5edabc63ebbf859324c7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/bc0fd11bc455cc20ee4b5edabc63ebbf859324c7", - "reference": "bc0fd11bc455cc20ee4b5edabc63ebbf859324c7", - "shasum": "" - }, - "require": { - "php": "^5.5.9 || ^7.0", - "psr/log": "^1.0.1" - }, - "require-dev": { - "mockery/mockery": "^0.9 || ^1.0", - "phpunit/phpunit": "^4.8.35 || ^5.7", - "symfony/var-dumper": "^2.6 || ^3.0 || ^4.0" - }, - "suggest": { - "symfony/var-dumper": "Pretty print complex values better with var-dumper available", - "whoops/soap": "Formats errors as SOAP responses" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.2-dev" - } - }, - "autoload": { - "psr-4": { - "Whoops\\": "src/Whoops/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Filipe Dobreira", - "homepage": "https://github.com/filp", - "role": "Developer" - } - ], - "description": "php error handling for cool kids", - "homepage": "https://filp.github.io/whoops/", - "keywords": [ - "error", - "exception", - "handling", - "library", - "throwable", - "whoops" - ], - "time": "2018-10-23T09:00:00+00:00" - }, - { - "name": "o2system/cache", - "version": "v2.2.90", - "source": { - "type": "git", - "url": "https://github.com/o2system/cache.git", - "reference": "d6957b34d701d1fac3afa456db9f51525f68084e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/o2system/cache/zipball/d6957b34d701d1fac3afa456db9f51525f68084e", - "reference": "d6957b34d701d1fac3afa456db9f51525f68084e", - "shasum": "" - }, - "require": { - "o2system/kernel": "*", - "php": "^7.2.0" - }, - "type": "package", - "autoload": { - "psr-4": { - "O2System\\Cache\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Steeven Andrian Salim", - "email": "steevenz@steevenz.com", - "homepage": "http://www.steevenz.com", - "role": "Founder and Lead Project" - }, - { - "name": "Teguh Rianto", - "email": "teguh.rianto22@gmail.com", - "homepage": "http://teguhrianto22.pusku.com", - "role": "Template Designer" - } - ], - "description": "PHP Cache Handler Library", - "keywords": [ - "driver", - "framework", - "libraries", - "php", - "utilities" - ], - "time": "2019-04-29T14:03:48+00:00" - }, - { - "name": "o2system/curl", - "version": "v2.1.47", - "source": { - "type": "git", - "url": "https://github.com/o2system/curl.git", - "reference": "46173d50f4267bc3c31621b81cb37be4bef6724e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/o2system/curl/zipball/46173d50f4267bc3c31621b81cb37be4bef6724e", - "reference": "46173d50f4267bc3c31621b81cb37be4bef6724e", - "shasum": "" - }, - "require": { - "ext-json": "*", - "ext-simplexml": "*", - "o2system/kernel": "*", - "php": "^7.2.0" - }, - "type": "package", - "autoload": { - "psr-4": { - "O2System\\Curl\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Steeven Andrian Salim", - "email": "steevenz@steevenz.com", - "homepage": "http://www.steevenz.com", - "role": "Founder and Lead Project" - }, - { - "name": "Teguh Rianto", - "email": "teguh.rianto22@gmail.com", - "homepage": "http://teguhrianto22.pusku.com", - "role": "Template Designer" - } - ], - "description": "PHP Lightweight HTTP Request Client Libraries", - "keywords": [ - "driver", - "framework", - "libraries", - "php", - "utilities" - ], - "time": "2019-04-29T15:24:55+00:00" - }, - { - "name": "o2system/database", - "version": "v2.1.415", - "source": { - "type": "git", - "url": "https://github.com/o2system/database.git", - "reference": "deb718666a47eab2b30cbca75d5aa80a5675b0f8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/o2system/database/zipball/deb718666a47eab2b30cbca75d5aa80a5675b0f8", - "reference": "deb718666a47eab2b30cbca75d5aa80a5675b0f8", - "shasum": "" - }, - "require": { - "o2system/kernel": "*", - "php": "^7.2.0" - }, - "type": "package", - "autoload": { - "psr-4": { - "O2System\\Database\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Steeven Andrian Salim", - "email": "steevenz@steevenz.com", - "homepage": "http://www.steevenz.com", - "role": "Founder and Lead Project" - }, - { - "name": "Teguh Rianto", - "email": "teguh.rianto22@gmail.com", - "homepage": "http://teguhrianto22.pusku.com", - "role": "Template Designer" - } - ], - "description": "PHP Database Management Library", - "keywords": [ - "driver", - "framework", - "libraries", - "php", - "utilities" - ], - "time": "2019-04-30T09:14:19+00:00" - }, - { - "name": "o2system/filesystem", - "version": "v1.0.54", - "source": { - "type": "git", - "url": "https://github.com/o2system/filesystem.git", - "reference": "50f6e5924975a182629a1435ab6ec7f6b0acfb81" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/o2system/filesystem/zipball/50f6e5924975a182629a1435ab6ec7f6b0acfb81", - "reference": "50f6e5924975a182629a1435ab6ec7f6b0acfb81", - "shasum": "" - }, - "require": { - "ext-fileinfo": "*", - "o2system/kernel": "*", - "php": "^7.2.0" - }, - "type": "package", - "autoload": { - "psr-4": { - "O2System\\Filesystem\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Steeven Andrian Salim", - "email": "steevenz@steevenz.com", - "homepage": "http://www.steevenz.com", - "role": "Founder and Lead Project" - }, - { - "name": "Teguh Rianto", - "email": "teguh.rianto22@gmail.com", - "homepage": "http://teguhrianto22.pusku.com", - "role": "Template Designer" - } - ], - "description": "PHP Filesystem Library", - "keywords": [ - "driver", - "framework", - "libraries", - "php", - "utilities" - ], - "time": "2019-05-09T01:27:14+00:00" - }, - { - "name": "o2system/kernel", - "version": "v1.9.158", - "source": { - "type": "git", - "url": "https://github.com/o2system/kernel.git", - "reference": "4f9464ad3980077ffa15ec03f35a78956dd4a97e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/o2system/kernel/zipball/4f9464ad3980077ffa15ec03f35a78956dd4a97e", - "reference": "4f9464ad3980077ffa15ec03f35a78956dd4a97e", - "shasum": "" - }, - "require": { - "filp/whoops": "^2.3", - "o2system/spl": "*", - "php": "^7.2.0" - }, - "require-dev": { - "o2system/gear": "*" - }, - "type": "package", - "autoload": { - "psr-4": { - "O2System\\Kernel\\": "src" - }, - "files": [ - "src/Config/Constants.php", - "src/Helpers/Common.php", - "src/Helpers/Inflector.php", - "src/Helpers/Cookie.php", - "src/Kernel.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Steeven Andrian Salim", - "email": "steevenz@steevenz.com", - "homepage": "http://www.steevenz.com", - "role": "Founder and Lead Project" - }, - { - "name": "Teguh Rianto", - "email": "teguh.rianto22@gmail.com", - "homepage": "http://teguhrianto22.pusku.com", - "role": "Template Designer" - } - ], - "description": "O2System Framework Kernel", - "keywords": [ - "driver", - "framework", - "libraries", - "php", - "singleton" - ], - "time": "2019-05-11T13:42:00+00:00" - }, - { - "name": "o2system/psr", - "version": "v1.2.155", - "source": { - "type": "git", - "url": "https://github.com/o2system/psr.git", - "reference": "b5155535b23113ff6156a45a4b8deeffc0fcb9e4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/o2system/psr/zipball/b5155535b23113ff6156a45a4b8deeffc0fcb9e4", - "reference": "b5155535b23113ff6156a45a4b8deeffc0fcb9e4", - "shasum": "" - }, - "require": { - "php": "^7.2.0", - "psr/cache": "*", - "psr/container": "*", - "psr/http-message": "*", - "psr/http-server-middleware": "*", - "psr/log": "*", - "psr/simple-cache": "*" - }, - "type": "package", - "autoload": { - "psr-4": { - "O2System\\Psr\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Steeven Andrian Salim", - "email": "steevenz@steevenz.com", - "homepage": "http://www.steevenz.com", - "role": "Founder and Lead Project" - }, - { - "name": "Teguh Rianto", - "email": "teguh.rianto22@gmail.com", - "homepage": "http://teguhrianto22.pusku.com", - "role": "Template Designer" - } - ], - "description": "O2System PSR it's build based on PHP Framework Interop Group (PHP-FIG) standards recommendations. This repository contains a collection of PHP interfaces based on the PSR-0 until the PSR-7.", - "keywords": [ - "framework", - "interfaces", - "libraries", - "php", - "utilities" - ], - "time": "2019-04-29T17:22:23+00:00" - }, - { - "name": "o2system/reactor", - "version": "v1.1.9", - "source": { - "type": "git", - "url": "https://github.com/o2system/reactor.git", - "reference": "0a41a9d6ce1b1e7d6adf435ee64a7f6532ca8fc3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/o2system/reactor/zipball/0a41a9d6ce1b1e7d6adf435ee64a7f6532ca8fc3", - "reference": "0a41a9d6ce1b1e7d6adf435ee64a7f6532ca8fc3", - "shasum": "" - }, - "require": { - "o2system/cache": "*", - "o2system/curl": "*", - "o2system/database": "*", - "o2system/filesystem": "*", - "o2system/kernel": "*", - "o2system/security": "*", - "php": "~7.2.0" - }, - "type": "package", - "autoload": { - "psr-4": { - "O2System\\Reactor\\": "src" - }, - "files": [ - "src/Reactor.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Steeven Andrian Salim", - "email": "steevenz@steevenz.com", - "homepage": "http://www.steevenz.com" - } - ], - "description": "O2System Mini Reactor", - "keywords": [ - "framework", - "libraries", - "microservices", - "mini framework", - "php", - "utilities" - ], - "time": "2019-05-11T13:41:23+00:00" - }, - { - "name": "o2system/security", - "version": "v1.5.127", - "source": { - "type": "git", - "url": "https://github.com/o2system/security.git", - "reference": "9b1b6fa6957519c54f862761267d8575b4372e67" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/o2system/security/zipball/9b1b6fa6957519c54f862761267d8575b4372e67", - "reference": "9b1b6fa6957519c54f862761267d8575b4372e67", - "shasum": "" - }, - "require": { - "ext-openssl": "*", - "o2system/session": "*", - "php": "^7.2.0" - }, - "type": "package", - "autoload": { - "psr-4": { - "O2System\\Security\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "authors": [ - { - "name": "Steeven Andrian Salim", - "email": "steevenz@steevenz.com", - "homepage": "http://www.steevenz.com", - "role": "Founder and Lead Project" - }, - { - "name": "Teguh Rianto", - "email": "teguh.rianto22@gmail.com", - "homepage": "http://teguhrianto22.pusku.com", - "role": "Template Designer" - } - ], - "description": "O2System Security", - "keywords": [ - "framework", - "interfaces", - "libraries", - "php", - "utilities" - ], - "time": "2019-05-10T20:08:45+00:00" - }, - { - "name": "o2system/session", - "version": "v2.0.44", - "source": { - "type": "git", - "url": "https://github.com/o2system/session.git", - "reference": "49f2af67b876a58c0895ac80fc64a01b27ea6a6d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/o2system/session/zipball/49f2af67b876a58c0895ac80fc64a01b27ea6a6d", - "reference": "49f2af67b876a58c0895ac80fc64a01b27ea6a6d", - "shasum": "" - }, - "require": { - "o2system/kernel": "*", - "php": "^7.2.0" - }, - "type": "package", - "autoload": { - "psr-4": { - "O2System\\Session\\": "src" - }, - "files": [ - "src/Session.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "authors": [ - { - "name": "Steeven Andrian Salim", - "email": "steevenz@steevenz.com", - "homepage": "http://www.steevenz.com", - "role": "Founder and Lead Project" - }, - { - "name": "Teguh Rianto", - "email": "teguh.rianto22@gmail.com", - "homepage": "http://teguhrianto22.pusku.com", - "role": "Template Designer" - } - ], - "description": "Open Source PHP Session Management Library", - "keywords": [ - "framework", - "interfaces", - "libraries", - "php", - "session" - ], - "time": "2019-04-29T14:50:02+00:00" - }, - { - "name": "o2system/spl", - "version": "v1.0.143", - "source": { - "type": "git", - "url": "https://github.com/o2system/spl.git", - "reference": "024d87183098491394bbd3d36af3688236752bac" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/o2system/spl/zipball/024d87183098491394bbd3d36af3688236752bac", - "reference": "024d87183098491394bbd3d36af3688236752bac", - "shasum": "" - }, - "require": { - "o2system/psr": "*", - "php": "^7.2.0" - }, - "type": "package", - "autoload": { - "psr-4": { - "O2System\\Spl\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Steeven Andrian Salim", - "email": "steevenz@steevenz.com", - "homepage": "http://www.steevenz.com", - "role": "Founder and Lead Project" - }, - { - "name": "Teguh Rianto", - "email": "teguh.rianto22@gmail.com", - "homepage": "http://teguhrianto22.pusku.com", - "role": "Template Designer" - } - ], - "description": "O2System Standard PHP Library (SPL) it's build based on original standard PHP library. It's made up primarily of commonly needed datastructure classes, iterators, handlers and exceptions for O2System PHP Framework, but also can be used independently outside O2System PHP Framework environment.", - "keywords": [ - "framework", - "interfaces", - "libraries", - "php", - "utilities" - ], - "time": "2019-05-10T20:10:52+00:00" - }, - { - "name": "psr/cache", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/php-fig/cache.git", - "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", - "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Cache\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for caching libraries", - "keywords": [ - "cache", - "psr", - "psr-6" - ], - "time": "2016-08-06T20:24:11+00:00" - }, - { - "name": "psr/container", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", - "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Container\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common Container Interface (PHP FIG PSR-11)", - "homepage": "https://github.com/php-fig/container", - "keywords": [ - "PSR-11", - "container", - "container-interface", - "container-interop", - "psr" - ], - "time": "2017-02-14T16:28:37+00:00" - }, - { - "name": "psr/http-message", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-message.git", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP messages", - "homepage": "https://github.com/php-fig/http-message", - "keywords": [ - "http", - "http-message", - "psr", - "psr-7", - "request", - "response" - ], - "time": "2016-08-06T14:39:51+00:00" - }, - { - "name": "psr/http-server-handler", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-server-handler.git", - "reference": "aff2f80e33b7f026ec96bb42f63242dc50ffcae7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-server-handler/zipball/aff2f80e33b7f026ec96bb42f63242dc50ffcae7", - "reference": "aff2f80e33b7f026ec96bb42f63242dc50ffcae7", - "shasum": "" - }, - "require": { - "php": ">=7.0", - "psr/http-message": "^1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Http\\Server\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP server-side request handler", - "keywords": [ - "handler", - "http", - "http-interop", - "psr", - "psr-15", - "psr-7", - "request", - "response", - "server" - ], - "time": "2018-10-30T16:46:14+00:00" - }, - { - "name": "psr/http-server-middleware", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-server-middleware.git", - "reference": "2296f45510945530b9dceb8bcedb5cb84d40c5f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-server-middleware/zipball/2296f45510945530b9dceb8bcedb5cb84d40c5f5", - "reference": "2296f45510945530b9dceb8bcedb5cb84d40c5f5", - "shasum": "" - }, - "require": { - "php": ">=7.0", - "psr/http-message": "^1.0", - "psr/http-server-handler": "^1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Http\\Server\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP server-side middleware", - "keywords": [ - "http", - "http-interop", - "middleware", - "psr", - "psr-15", - "psr-7", - "request", - "response" - ], - "time": "2018-10-30T17:12:04+00:00" - }, - { - "name": "psr/log", - "version": "1.1.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Log\\": "Psr/Log/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "time": "2018-11-20T15:27:04+00:00" - }, - { - "name": "psr/simple-cache", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/php-fig/simple-cache.git", - "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", - "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\SimpleCache\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interfaces for simple caching", - "keywords": [ - "cache", - "caching", - "psr", - "psr-16", - "simple-cache" - ], - "time": "2017-10-23T01:57:42+00:00" - } - ], - "packages-dev": [ - { - "name": "o2system/gear", - "version": "v2.1.62", - "source": { - "type": "git", - "url": "https://github.com/o2system/gear.git", - "reference": "b76406b68c5f72122c6f840b757e957f424bc772" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/o2system/gear/zipball/b76406b68c5f72122c6f840b757e957f424bc772", - "reference": "b76406b68c5f72122c6f840b757e957f424bc772", - "shasum": "" - }, - "require": { - "php": "^7.2.0" - }, - "type": "package", - "autoload": { - "psr-4": { - "O2System\\Gear\\": "src" - }, - "files": [ - "src/Helper.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Steeven Andrian Salim", - "email": "steevenz@steevenz.com", - "homepage": "http://www.steevenz.com", - "role": "Founder and Lead Project" - }, - { - "name": "Teguh Rianto", - "email": "teguh.rianto22@gmail.com", - "homepage": "http://teguhrianto22.pusku.com", - "role": "Template Designer" - } - ], - "description": "PHP Developer Tools Library", - "keywords": [ - "driver", - "framework", - "libraries", - "php", - "utilities" - ], - "time": "2019-04-09T06:22:43+00:00" - } - ], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, - "prefer-lowest": false, - "platform": { - "php": "^7.2.0" - }, - "platform-dev": [] -} diff --git a/o2system b/o2system index ac97f28..742b4c0 100644 --- a/o2system +++ b/o2system @@ -1,4 +1,3 @@ -#!/usr/bin/php -q setWelcomeNote( ( new \O2System\Kernel\Cli\Writers\Text ) ->setContextualClass( \O2System\Kernel\Cli\Writers\Text::DANGER ) @@ -47,6 +46,6 @@ $cliApp ) ->setName( FRAMEWORK_NAME ) ->setVersion( FRAMEWORK_VERSION ) - ->setCommandersNamespace( '\O2System\Reactor\Cli\Commanders' ) - ->setCommandersPath( PATH_REACTOR . 'Cli/Commanders' ) + ->setCommandersNamespace( '\O2System\Framework\Cli\Commanders' ) + ->setCommandersPath( PATH_FRAMEWORK . 'Cli/Commanders' ) ->run(); \ No newline at end of file