Skip to content

Commit

Permalink
namespace updates
Browse files Browse the repository at this point in the history
  • Loading branch information
raghuveer committed Mar 23, 2024
1 parent f961042 commit 384f846
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 14 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@
"require": {
"ext-json": "*",
"ext-intl": "*",
"php": ">=8.1",
"php": ">=8.2",
"amphp/http-server": "^3.3",
"amphp/http-server-router": "^2.0",
"amphp/parallel": "^2.2",
"amphp/http-server-form-parser": "^2.0",
"monolog/monolog": "^3.5",
"amphp/log": "^2.0",
"illuminate/container": "^10.45",
"illuminate/container": "^10.46.0",
"phpunit/php-timer": "^7.0",
"filp/whoops": "^2.15",
"vlucas/phpdotenv": "^5.6"
},
"require-dev": {
"ext-json": "*",
"ext-intl": "*",
"php": ">=8.1",
"php": ">=8.2",
"amphp/http-server": "^3.3",
"amphp/http-server-router": "^2.0",
"amphp/parallel": "^2.2",
"amphp/http-server-form-parser": "^2.0",
"monolog/monolog": "^3.5",
"amphp/log": "^2.0",
"illuminate/container": "^10.45",
"illuminate/container": "^10.46.0",
"phpunit/php-timer": "^7.0",
"filp/whoops": "^2.15",
"vlucas/phpdotenv": "^5.6"
Expand Down
1 change: 1 addition & 0 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public function __construct(Container $container)
//Check if the request is based upon Console or Web
$eaIsConsole = new EAIsConsole();
$this->container->instance('EAIsConsole', $eaIsConsole);
//$this->eaIsConsoleInstance = $this->container->get('EAIsConsole')->checkSTDIN();

//Save EA REQUEST Console Status Result to Container
//$this->container->instance('EARequestConsoleStatusResult', $this->eaIsConsoleInstance);
Expand Down
2 changes: 1 addition & 1 deletion src/Core/EAConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class EAConfig
public function __construct(Container $container)
{
$this->container = $container;
//COMMENTED on 25-02-2024 $this->serverRequest = $this->container->get('\Laminas\Diactoros\ServerRequestFactory');
$this->serverRequest = $this->container->get('\Laminas\Diactoros\ServerRequestFactory');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Foundation/BaseCliModel.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace EaseAppPHP\Foundation;
namespace EaseAppPHP\EARapid\Foundation;

use \EaseAppPHP\EARapid\Foundation\Interfaces\ArrayableInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/Foundation/BaseWebController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(Container $container)
$this->matchedRouteDetails = $this->container->get('MatchedRouteDetails');
$this->serverRequest = $this->container->get('\Laminas\Diactoros\ServerRequestFactory');
$this->queryParams = $this->serverRequest->getQueryParams();
$this->response = $this->container->get('\EaseAppPHP\Foundation\BaseWebResponse');
$this->response = $this->container->get('\EaseAppPHP\EARapid\Foundation\BaseWebResponse');
}

/**
Expand Down
11 changes: 6 additions & 5 deletions src/Foundation/BaseWebModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ public function __construct(Container $container, $config, $matchedRouteDetails,
$this->processedModelResponse = new \stdClass();
}

public function offsetExists ($offset)
public function offsetExists ($offset): bool
{
return isset($this->container[$offset]);
}

public function offsetGet ($offset)
public function offsetGet ($offset): mixed
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}

public function offsetSet ($offset, $value)
public function offsetSet ($offset, $value): void
{
if (is_null($offset)) {

Expand All @@ -47,7 +47,7 @@ public function offsetSet ($offset, $value)
}
}

public function offsetUnset ($offset)
public function offsetUnset ($offset): void
{
unset($this->container[$offset]);
}
Expand All @@ -57,7 +57,8 @@ public function offsetUnset ($offset)
*
* @return array
*/
public function jsonSerialize(){
public function jsonSerialize(): mixed
{
return [];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Other/EAConstants.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace EaseAppPHP\Other;
namespace EaseAppPHP\EARapid\Other;

use \Illuminate\Container\Container;

Expand Down
2 changes: 1 addition & 1 deletion src/Other/Log.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace EaseAppPHP\Other;
namespace EaseAppPHP\EARapid\Other;

use \Illuminate\Container\Container;

Expand Down

0 comments on commit 384f846

Please sign in to comment.