Skip to content

Commit

Permalink
Update library through .gitmodules
Browse files Browse the repository at this point in the history
  • Loading branch information
kleninmaxim committed Apr 27, 2022
1 parent b0f6a79 commit 9775ea9
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 309 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "libs/PHP-API"]
path = libs/PHP-API
url = https://github.com/RoboTradeCode/PHP-API.git
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ php composer.phar

8. Клонирование репозитория (Если ссылка не подходит, скопировать ее, на гитхаб в репозитории -> code -> https -> копирование значок)
```shell
git clone https://github.com/RoboTradeCode/core_3t_php.git
git clone --recurse-submodules https://github.com/RoboTradeCode/core_3t_php.git
```

9. перейти в папку core_3t_php
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

"autoload": {
"psr-4": {
"Src\\" : "src/"
"Src\\" : "src/",
"robotrade\\" : "libs/PHP-API"
}
}
}
2 changes: 1 addition & 1 deletion kernel/receive_data.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Src\Aeron;
use Src\Api;
use robotrade\Api;
use Src\Test\TestAgentFormatData;

require dirname(__DIR__) . '/index.php';
Expand Down
2 changes: 1 addition & 1 deletion kernel/test_c.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use Src\Api;
use robotrade\Api;

require dirname(__DIR__) . '/index.php';
require dirname(__DIR__) . '/config/test_aeron_config_c.php';
Expand Down
1 change: 1 addition & 0 deletions libs/PHP-API
Submodule PHP-API added at 0256ea
302 changes: 0 additions & 302 deletions src/Api.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Test/TestAeronFormatData.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Src\Test;

use Src\Aeron;
use Src\Api;
use robotrade\Api;

class TestAeronFormatData
{
Expand Down
2 changes: 1 addition & 1 deletion src/Test/TestAgentFormatData.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Src\Test;

use Src\Aeron;
use Src\Api;
use robotrade\Api;

class TestAgentFormatData
{
Expand Down
2 changes: 1 addition & 1 deletion src/Test/TestLogFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Src\Test;

use Src\Api;
use robotrade\Api;

class TestLogFormat
{
Expand Down

0 comments on commit 9775ea9

Please sign in to comment.