Skip to content

Commit 05b1fed

Browse files
author
Sergey Surkov
committed
rename to Symbiotic
1 parent f5d7e60 commit 05b1fed

48 files changed

Lines changed: 303 additions & 296 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
2-
"name": "dissonance/develop",
2+
"name": "symbiotic/develop",
33
"require": {
44
"php": ">=7.2",
5-
"dissonance/ui_backend": "1.*"
5+
"symbiotic/ui_backend": "1.*"
66
},
77
"license": "MIT",
8-
"version": "1.1.0",
8+
"version": "1.1.1",
99
"autoload": {
1010
"psr-4": {
11-
"Dissonance\\Develop\\": "src/"
11+
"Symbiotic\\Develop\\": "src/"
1212
},
1313
"files": [
1414
"src/functions.php"
1515
]
1616
},
1717
"extra": {
18-
"dissonance": {
18+
"symbiotic": {
1919
"id": "develop",
2020
"app": {
2121
"id": "develop",
2222
"name": "Develop",
23-
"routing": "\\Dissonance\\Develop\\Routing",
24-
"controllers_namespace": "\\Dissonance\\Develop\\Http\\Controllers",
23+
"routing": "\\Symbiotic\\Develop\\Routing",
24+
"controllers_namespace": "\\Symbiotic\\Develop\\Http\\Controllers",
2525
"version": "1.0.0",
2626
"providers": [
27-
"\\Dissonance\\Develop\\Providers\\AppProvider"
27+
"\\Symbiotic\\Develop\\Providers\\AppProvider"
2828
],
2929
"requires": []
3030
}

resources/stubs/resources/views/demo/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</div>
3636
<?php
3737
/**
38-
* @var \Dissonance\Routing\RouteInterface $route
38+
* @var \Symbiotic\Routing\RouteInterface $route
3939
*/
4040
?>
4141
<div class="row">
@@ -67,7 +67,7 @@
6767
<div class="section">
6868
<?php
6969
/**
70-
* @var \Dissonance\Apps\ApplicationInterface $app
70+
* @var \Symbiotic\Apps\ApplicationInterface $app
7171
*/
7272
?>
7373
<div class="row">

resources/stubs/src/Application.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
namespace DummyPackageNamespace;
55

6-
use Dissonance\Apps\Application;
7-
use Dissonance\Apps\AppsRepositoryInterface;
8-
use Dissonance\Container\ContainerTrait;
9-
use Dissonance\Container\SubContainerTrait;
10-
use Dissonance\Apps\ApplicationInterface;
6+
use Symbiotic\Apps\Application;
7+
use Symbiotic\Apps\AppsRepositoryInterface;
8+
use Symbiotic\Container\ContainerTrait;
9+
use Symbiotic\Container\SubContainerTrait;
10+
use Symbiotic\Apps\ApplicationInterface;
1111

1212

1313
class DummyClass extends Application implements ApplicationInterface

resources/stubs/src/Bootstrap/Bootstrap.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,37 @@
22

33
namespace DummyNamespace;
44

5-
use Dissonance\Core\{CoreInterface, BootstrapInterface};
6-
use Dissonance\Http\Kernel\{HttpKernel, HttpRunner, RoutingHandler};
5+
use Symbiotic\Core\{CoreInterface, BootstrapInterface};
6+
use Symbiotic\Http\Kernel\{HttpKernel, HttpRunner, RoutingHandler};
77

88

99
class DummyClass implements BootstrapInterface
1010
{
1111

1212
/**
13-
* @param CoreInterface | \Dissonance\Core | array $app = [
13+
* @param CoreInterface | \Symbiotic\Core | array $app = [
1414
* // Сервисы доступные сразу
1515
*
16-
* 'config' => new \Dissonance\Config(), {@used-by \_DS\config()}
17-
* 'events' => new \Dissonance\EventDispatcher(), //{@see \Dissonance\Core\Bootstrap\EventBootstrap::bootstrap()}
18-
* 'listeners' => new \Dissonance\Events\ListenerProvider(), //{@see \Dissonance\Core\Bootstrap\EventBootstrap::bootstrap()}
16+
* 'config' => new \Symbiotic\Config(), {@used-by \_DS\config()}
17+
* 'events' => new \Symbiotic\EventDispatcher(), //{@see \Symbiotic\Core\Bootstrap\EventBootstrap::bootstrap()}
18+
* 'listeners' => new \Symbiotic\Events\ListenerProvider(), //{@see \Symbiotic\Core\Bootstrap\EventBootstrap::bootstrap()}
1919
*
2020
* // Сервисы которых может еще не быть, но они доступны сразу после отработки всех бутстраперов
2121
*
22-
* 'apps' => new \Dissonance\Appss\AppsRepository(), //{@see \Dissonance\Apps\Bootstrap::bootstrap()}
23-
* 'cache' => new \Dissonance\SimpleCache\Cache(), // может и не быть пакета
24-
* 'resources' => new \Dissonance\Packages\Resources(), //{@see \Dissonance\Packages\ResourcesBootstrap::bootstrap()}
25-
* 'http_factory' => new \Dissonance\Http\PsrHttpFactory(), //{@see \Dissonance\Http\Bootstrap::bootstrap()}
22+
* 'apps' => new \Symbiotic\Appss\AppsRepository(), //{@see \Symbiotic\Apps\Bootstrap::bootstrap()}
23+
* 'cache' => new \Symbiotic\SimpleCache\Cache(), // может и не быть пакета
24+
* 'resources' => new \Symbiotic\Packages\Resources(), //{@see \Symbiotic\Packages\ResourcesBootstrap::bootstrap()}
25+
* 'http_factory' => new \Symbiotic\Http\PsrHttpFactory(), //{@see \Symbiotic\Http\Bootstrap::bootstrap()}
2626
*
2727
* // Сервисы из провайдеров, доступны после бутстрапа ядра {@see HttpRunner::run(), HttpKernel::bootstrap()}
2828
*
2929
* // HTTP сервисы, используются в {@see HttpKernel::handle(), RoutingHandler::handle()}
30-
* 'router' => new \Dissonance\Routing\Router(), //{@see \Dissonance\Routing\Provider::registerRouter()}
31-
* 'request' => new \Dissonance\Http\ServerRequest(), //{@see HttpKernel::handle()}
32-
* 'session' => new \Dissonance\Session\SessionStorageInterface(), //{@see \Dissonance\Session\SessionStorageNative}
33-
* 'cookie' => new \Dissonance\Http\Cookie\CookiesInterface(), //{@see \Dissonance\Http\Cookie\CookiesProvider::register()}
30+
* 'router' => new \Symbiotic\Routing\Router(), //{@see \Symbiotic\Routing\Provider::registerRouter()}
31+
* 'request' => new \Symbiotic\Http\ServerRequest(), //{@see HttpKernel::handle()}
32+
* 'session' => new \Symbiotic\Session\SessionStorageInterface(), //{@see \Symbiotic\Session\SessionStorageNative}
33+
* 'cookie' => new \Symbiotic\Http\Cookie\CookiesInterface(), //{@see \Symbiotic\Http\Cookie\CookiesProvider::register()}
3434
* // Доступен только при обработке в контроллерах!!!
35-
* 'route' => new \Dissonance\Routing\RouteInterface(), //{@see \Dissonance\Http\Kernel\RouteHandler::handle()}
35+
* 'route' => new \Symbiotic\Routing\RouteInterface(), //{@see \Symbiotic\Http\Kernel\RouteHandler::handle()}
3636
* ]
3737
*/
3838
public function bootstrap(CoreInterface $app): void

resources/stubs/src/Bootstrap/BootstrapDemo.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,38 @@
22

33
namespace DummyNamespace;
44

5-
use Dissonance\Core\{CoreInterface, BootstrapInterface};
6-
use Dissonance\Http\Kernel\{HttpKernel, HttpRunner, RoutingHandler};
5+
use Symbiotic\Core\{CoreInterface, BootstrapInterface};
6+
use Symbiotic\Http\Kernel\{HttpKernel, HttpRunner, RoutingHandler};
77

88

99

1010
class DummyClass implements BootstrapInterface
1111
{
1212

1313
/**
14-
* @param CoreInterface|\Dissonance\Core | array $app = [
14+
* @param CoreInterface|\Symbiotic\Core | array $app = [
1515
* // Сервисы доступные сразу
1616
*
17-
* 'config' => new \Dissonance\Config(),
18-
* 'events' => new \Dissonance\Event\Dispatcher(), //{@see \Dissonance\Core\Bootstrap\EventBootstrap::bootstrap()}
19-
* 'listeners' => new \Dissonance\Event\ListenerProvider(), //{@see \Dissonance\Core\Bootstrap\EventBootstrap::bootstrap()}
17+
* 'config' => new \Symbiotic\Config(),
18+
* 'events' => new \Symbiotic\Event\Dispatcher(), //{@see \Symbiotic\Core\Bootstrap\EventBootstrap::bootstrap()}
19+
* 'listeners' => new \Symbiotic\Event\ListenerProvider(), //{@see \Symbiotic\Core\Bootstrap\EventBootstrap::bootstrap()}
2020
*
2121
* // Сервисы которых может еще не быть, но они доступны сразу после отработки всех бутстраперов
2222
*
23-
* 'apps' => new \Dissonance\Appss\AppsRepository(), //{@see \Dissonance\Apps\Bootstrap::bootstrap()}
24-
* 'cache' => new \Dissonance\SimpleCache\Cache(), // может и не быть пакета
25-
* 'resources' => new \Dissonance\Packages\Resources(), //{@see \Dissonance\Packages\ResourcesBootstrap::bootstrap()}
26-
* 'http_factory' => new \Dissonance\Http\PsrHttpFactory(), //{@see \Dissonance\Http\Bootstrap::bootstrap()}
23+
* 'apps' => new \Symbiotic\Appss\AppsRepository(), //{@see \Symbiotic\Apps\Bootstrap::bootstrap()}
24+
* 'cache' => new \Symbiotic\SimpleCache\Cache(), // может и не быть пакета
25+
* 'resources' => new \Symbiotic\Packages\Resources(), //{@see \Symbiotic\Packages\ResourcesBootstrap::bootstrap()}
26+
* 'http_factory' => new \Symbiotic\Http\PsrHttpFactory(), //{@see \Symbiotic\Http\Bootstrap::bootstrap()}
2727
*
2828
* // Сервисы из провайдеров, доступны после бутстрапа ядра {@see HttpRunner::run(), HttpKernel::bootstrap()}
2929
*
3030
* // HTTP сервисы, используются в {@see HttpKernel::handle(), RoutingHandler::handle()}
31-
* 'router' => new \Dissonance\Routing\Router(), //{@see \Dissonance\Routing\Provider::registerRouter()}
32-
* 'session' => new \Dissonance\Session\SessionStorageInterface(), //{@see \Dissonance\session\NativeProvider::register()}
33-
* 'request' => new \Dissonance\Http\ServerRequest(), //{@see HttpKernel::handle()}
34-
* 'cookie' => new \Dissonance\Http\Cookie\CookiesInterface(),//{@see \Dissonance\Http\Cookie\CookiesProvider::register()}
31+
* 'router' => new \Symbiotic\Routing\Router(), //{@see \Symbiotic\Routing\Provider::registerRouter()}
32+
* 'session' => new \Symbiotic\Session\SessionStorageInterface(), //{@see \Symbiotic\session\NativeProvider::register()}
33+
* 'request' => new \Symbiotic\Http\ServerRequest(), //{@see HttpKernel::handle()}
34+
* 'cookie' => new \Symbiotic\Http\Cookie\CookiesInterface(),//{@see \Symbiotic\Http\Cookie\CookiesProvider::register()}
3535
* // Доступен только при обработке в контроллерах!!!
36-
* 'route' => new \Dissonance\Routing\RouteInterface(), //{@see \Dissonance\Http\Kernel\RouteHandler::handle()}
36+
* 'route' => new \Symbiotic\Routing\RouteInterface(), //{@see \Symbiotic\Http\Kernel\RouteHandler::handle()}
3737
* ]
3838
*/
3939
public function bootstrap(CoreInterface $app): void

resources/stubs/src/Http/Controllers/Backend/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace DummyNamespace;
44

5-
use Dissonance\Core\View\View;
5+
use Symbiotic\Core\View\View;
66

77

88
class DummyClass

resources/stubs/src/Http/Controllers/Backend/ControllerDemo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace DummyNamespace;
44

5-
use Dissonance\Core\View\View;
5+
use Symbiotic\Core\View\View;
66

77

88
class DummyClass

resources/stubs/src/Http/Controllers/Frontend/Controller.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace DummyNamespace;
44

5-
use Dissonance\Apps\AppConfigInterface;
6-
use Dissonance\Core\View\View;
5+
use Symbiotic\Apps\AppConfigInterface;
6+
use Symbiotic\Core\View\View;
77

88

99
class DummyClass
@@ -28,7 +28,7 @@ public function index()
2828
* @return array
2929
*
3030
* @uses \DummyNamespace\Routing::defaultRoutes()
31-
* @see \Dissonance\Routing\AppRouting::defaultRoutes()
31+
* @see \Symbiotic\Routing\AppRouting::defaultRoutes()
3232
*/
3333
public function app_md5(AppConfigInterface $config)
3434
{

resources/stubs/src/Http/Controllers/Frontend/ControllerDemo.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
namespace DummyNamespace;
44

55

6-
use Dissonance\Apps\AppConfigInterface;
7-
use Dissonance\Apps\ApplicationInterface;
8-
use Dissonance\Core\CoreInterface;
9-
use Dissonance\Core\View\View;
10-
use Dissonance\Http\DownloadResponse;
11-
use Dissonance\Mimetypes\MimeTypesMini;
12-
use Dissonance\Packages\AssetsRepositoryInterface;
13-
use Dissonance\Packages\ResourcesRepositoryInterface;
14-
use Dissonance\Routing\RouteInterface;
6+
use Symbiotic\Apps\AppConfigInterface;
7+
use Symbiotic\Apps\ApplicationInterface;
8+
use Symbiotic\Core\CoreInterface;
9+
use Symbiotic\Core\View\View;
10+
use Symbiotic\Http\DownloadResponse;
11+
use Symbiotic\Mimetypes\MimeTypesMini;
12+
use Symbiotic\Packages\AssetsRepositoryInterface;
13+
use Symbiotic\Packages\ResourcesRepositoryInterface;
14+
use Symbiotic\Routing\RouteInterface;
1515
use Psr\Http\Message\ {ResponseInterface, ServerRequestInterface, StreamInterface};
1616

1717
use function _DS\response;
@@ -31,13 +31,13 @@ class DummyClass
3131
* @return View
3232
*
3333
* @uses \DummyPackageNamespace\Routing::frontendRoutes()
34-
* @see \Dissonance\Routing\AppRouting::frontendRoutes()
34+
* @see \Symbiotic\Routing\AppRouting::frontendRoutes()
3535
*/
3636
public function index(ApplicationInterface $app)
3737
{
3838
$actions = [
3939
/**
40-
* @see \Dissonance\Core\View\route()
40+
* @see \Symbiotic\Core\View\route()
4141
* В шаблоне, если нет префикса роутера [app_id::], то будет установлен префикс текущего приложения [#APP_ID#::array]
4242
*/
4343
'array' => 'Array action',
@@ -75,7 +75,7 @@ public function index(ApplicationInterface $app)
7575
* @return array
7676
*
7777
* @uses \DummyNamespace\Routing::frontendRoutes()
78-
* @see \Dissonance\Routing\AppRouting::frontendRoutes()
78+
* @see \Symbiotic\Routing\AppRouting::frontendRoutes()
7979
*/
8080
public function array(ApplicationInterface $app, RouteInterface $route)
8181
{
@@ -108,7 +108,7 @@ public function array(ApplicationInterface $app, RouteInterface $route)
108108
* @return ResponseInterface
109109
*
110110
* @uses \DummyNamespace\Routing::frontendRoutes()
111-
* @see \Dissonance\Routing\AppRouting::frontendRoutes()
111+
* @see \Symbiotic\Routing\AppRouting::frontendRoutes()
112112
*/
113113
public function file(ResponseInterface $response, ApplicationInterface $app)
114114
{
@@ -160,7 +160,7 @@ public function resource(AppConfigInterface $config, ResourcesRepositoryInterfac
160160
* @return ResponseInterface
161161
*
162162
* @uses \DummyNamespace\Routing::frontendRoutes()
163-
* @see \Dissonance\Routing\AppRouting::frontendRoutes()
163+
* @see \Symbiotic\Routing\AppRouting::frontendRoutes()
164164
*/
165165
public function download(ApplicationInterface $app)
166166
{
@@ -187,7 +187,7 @@ public function download(ApplicationInterface $app)
187187
* @return ResponseInterface
188188
*
189189
* @uses \DummyNamespace\Routing::frontendRoutes()
190-
* @see \Dissonance\Routing\AppRouting::frontendRoutes()
190+
* @see \Symbiotic\Routing\AppRouting::frontendRoutes()
191191
*/
192192
public function error404()
193193
{
@@ -206,7 +206,7 @@ public function error404()
206206
* @return array
207207
*
208208
* @uses \DummyNamespace\Routing::defaultRoutes()
209-
* @see \Dissonance\Routing\AppRouting::defaultRoutes()
209+
* @see \Symbiotic\Routing\AppRouting::defaultRoutes()
210210
*/
211211
public function app_md5(AppConfigInterface $config)
212212
{

resources/stubs/src/Providers/AppProvider.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace DummyNamespace;
44

5-
use Dissonance\Apps\Application;
6-
use Dissonance\Apps\ApplicationInterface;
7-
use Dissonance\Core\ServiceProvider;
8-
use Dissonance\Core\CoreInterface;
5+
use Symbiotic\Apps\Application;
6+
use Symbiotic\Apps\ApplicationInterface;
7+
use Symbiotic\Core\ServiceProvider;
8+
use Symbiotic\Core\CoreInterface;
99

1010

1111
/**
@@ -15,26 +15,26 @@
1515
* // ДАННЫЕ СЕРВИСЫ БЕРУТСЯ ИЗ КОРНЕВОГО КОНТЕЙНЕРА {@see CoreInterface}
1616
* // Сервисы доступные сразу
1717
*
18-
* 'config' => new \Dissonance\Config(), {@used-by \_DS\config()}
19-
* 'events' => new \Dissonance\EventDispatcher(), //{@see \Dissonance\Core\Bootstrap\EventBootstrap::bootstrap()}
20-
* 'listeners' => new \Dissonance\Events\ListenerProvider(), //{@see \Dissonance\Core\Bootstrap\EventBootstrap::bootstrap()}
18+
* 'config' => new \Symbiotic\Config(), {@used-by \_DS\config()}
19+
* 'events' => new \Symbiotic\EventDispatcher(), //{@see \Symbiotic\Core\Bootstrap\EventBootstrap::bootstrap()}
20+
* 'listeners' => new \Symbiotic\Events\ListenerProvider(), //{@see \Symbiotic\Core\Bootstrap\EventBootstrap::bootstrap()}
2121
*
2222
* // Сервисы которых может еще не быть, но они доступны сразу после отработки всех бутстраперов
2323
*
24-
* 'apps' => new \Dissonance\Appss\AppsRepository(), //{@see \Dissonance\Apps\Bootstrap::bootstrap()}
25-
* 'cache' => new \Dissonance\SimpleCache\Cache(), // может и не быть пакета
26-
* 'resources' => new \Dissonance\Packages\Resources(), //{@see \Dissonance\Packages\ResourcesBootstrap::bootstrap()}
27-
* 'http_factory' => new \Dissonance\Http\PsrHttpFactory(), //{@see \Dissonance\Http\Bootstrap::bootstrap()}
24+
* 'apps' => new \Symbiotic\Appss\AppsRepository(), //{@see \Symbiotic\Apps\Bootstrap::bootstrap()}
25+
* 'cache' => new \Symbiotic\SimpleCache\Cache(), // может и не быть пакета
26+
* 'resources' => new \Symbiotic\Packages\Resources(), //{@see \Symbiotic\Packages\ResourcesBootstrap::bootstrap()}
27+
* 'http_factory' => new \Symbiotic\Http\PsrHttpFactory(), //{@see \Symbiotic\Http\Bootstrap::bootstrap()}
2828
*
2929
* // Сервисы из провайдеров, доступны после бутстрапа ядра {@see HttpRunner::run(), HttpKernel::bootstrap()}
3030
*
3131
* // HTTP сервисы, используются в {@see HttpKernel::handle(), RoutingHandler::handle()}
32-
* 'router' => new \Dissonance\Routing\Router(), //{@see \Dissonance\Routing\Provider::registerRouter()}
33-
* 'request' => new \Dissonance\Http\ServerRequest(), //{@see HttpKernel::handle()}
34-
* 'session' => new \Dissonance\Session\SessionStorageInterface(), //{@see \Dissonance\Session\SessionStorageNative}
35-
* 'cookie' => new \Dissonance\Http\Cookie\CookiesInterface(), //{@see \Dissonance\Http\Cookie\CookiesProvider::register()}
32+
* 'router' => new \Symbiotic\Routing\Router(), //{@see \Symbiotic\Routing\Provider::registerRouter()}
33+
* 'request' => new \Symbiotic\Http\ServerRequest(), //{@see HttpKernel::handle()}
34+
* 'session' => new \Symbiotic\Session\SessionStorageInterface(), //{@see \Symbiotic\Session\SessionStorageNative}
35+
* 'cookie' => new \Symbiotic\Http\Cookie\CookiesInterface(), //{@see \Symbiotic\Http\Cookie\CookiesProvider::register()}
3636
* // Доступен только при обработке в контроллерах!!!
37-
* 'route' => new \Dissonance\Routing\RouteInterface(), //{@see \Dissonance\Http\Kernel\RouteHandler::handle()}
37+
* 'route' => new \Symbiotic\Routing\RouteInterface(), //{@see \Symbiotic\Http\Kernel\RouteHandler::handle()}
3838
* ]
3939
*/
4040
class DummyClass extends ServiceProvider

0 commit comments

Comments
 (0)