Skip to content

Commit

Permalink
0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Feb 27, 2023
1 parent f7a70f0 commit c8371ea
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 31 deletions.
10 changes: 5 additions & 5 deletions API/Client.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Df\ZohoBI\API;
namespace Dfe\ZohoBI\API;
use Df\Core\Exception as DFE;
use Df\ZohoBI\Settings;
use Dfe\ZohoBI\Settings;
/**
* 2017-07-06
* A common functionality for Zoho Books and Zoho Inventory.
Expand All @@ -10,10 +10,10 @@
* @see \Dfe\ZohoInventory\API\Client
* @method Settings ss()
*/
abstract class Client extends \Df\Zoho\API\Client {
abstract class Client extends \Dfe\Zoho\API\Client {
/**
* 2017-07-06
* @used-by \Df\ZohoBI\API\Client::urlBase()
* @used-by \Dfe\ZohoBI\API\Client::urlBase()
* @see \Dfe\ZohoBooks\API\Client::version()
* @see \Dfe\ZohoInventory\API\Client::version()
*/
Expand Down Expand Up @@ -62,7 +62,7 @@ final protected function responseValidatorC():string {return Validator::class;}
/**
* 2017-07-08
* @used-by self::commonParams()
* @used-by \Df\ZohoBI\API\Facade::organizations()
* @used-by \Dfe\ZohoBI\API\Facade::organizations()
* @var string
*/
const ORG = 'organizations';
Expand Down
10 changes: 5 additions & 5 deletions API/Facade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace Df\ZohoBI\API;
namespace Dfe\ZohoBI\API;
use Df\Core\Exception as DFE;
use Df\ZohoBI\API\Client as C;
use Df\ZohoBI\App;
use \Df\ZohoBI\Settings;
use Dfe\ZohoBI\API\Client as C;
use Dfe\ZohoBI\App;
use \Dfe\ZohoBI\Settings;
/**
* 2017-07-06
* @see \Dfe\ZohoBooks\API\Facade
Expand Down Expand Up @@ -47,7 +47,7 @@ final function p(string $path, string $ns = '', array $p = [], string $method =

/**
* 2017-07-07
* @used-by \Df\ZohoBI\App::f()
* @used-by \Dfe\ZohoBI\App::f()
* @param string|object $c
* @return self
*/
Expand Down
4 changes: 2 additions & 2 deletions API/Validator.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Df\ZohoBI\API;
namespace Dfe\ZohoBI\API;
/**
* 2017-07-06
* An error response looks like:
Expand All @@ -15,7 +15,7 @@
* }
* https://www.zoho.eu/books/api/v3/#response
* https://www.zoho.eu/inventory/api/v1/#response
* @used-by \Df\ZohoBI\API\Client::responseValidatorC()
* @used-by \Dfe\ZohoBI\API\Client::responseValidatorC()
*/
final class Validator extends \Df\API\Response\Validator {
/**
Expand Down
8 changes: 4 additions & 4 deletions App.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php
namespace Df\ZohoBI;
use Df\ZohoBI\API\Facade as F;
namespace Dfe\ZohoBI;
use Dfe\ZohoBI\API\Facade as F;
/**
* 2017-07-06
* @see \Dfe\ZohoBooks\App
* @see \Dfe\ZohoInventory\App
* @method Settings ss()
*/
abstract class App extends \Df\Zoho\App {
abstract class App extends \Dfe\Zoho\App {
/**
* 2017-07-07
* @used-by \Df\ZohoBI\Source\Organization::fetch()
* @used-by \Dfe\ZohoBI\Source\Organization::fetch()
*/
final function f():F {return F::s($this);}
}
6 changes: 3 additions & 3 deletions Settings.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
namespace Df\ZohoBI;
namespace Dfe\ZohoBI;
/**
* 2017-07-06
* @see \Dfe\ZohoCRM\Settings
* @see \Dfe\ZohoInventory\Settings
*/
abstract class Settings extends \Df\Zoho\Settings {
abstract class Settings extends \Dfe\Zoho\Settings {
/**
* 2017-07-07
* Note 1:
Expand All @@ -19,7 +19,7 @@ abstract class Settings extends \Df\Zoho\Settings {
* https://www.zoho.eu/books/api/v3/#organization-id
* https://www.zoho.eu/inventory/api/v1/#organization-id
* Note 2: The result is a natural number like «2723074» or «649147519».
* @used-by \Df\ZohoBI\API\Client::commonParams()
* @used-by \Dfe\ZohoBI\API\Client::commonParams()
* @return int
*/
final function organization() {return $this->i();}
Expand Down
6 changes: 3 additions & 3 deletions Source/Organization.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Df\ZohoBI\Source;
use Df\ZohoBI\App;
use Df\ZohoBI\Settings;
namespace Dfe\ZohoBI\Source;
use Dfe\ZohoBI\App;
use Dfe\ZohoBI\Settings;
/**
* 2017-07-06
* 2017-07-07
Expand Down
8 changes: 4 additions & 4 deletions Test/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
namespace Df\ZohoBI\Test;
use Df\ZohoBI\App;
use Df\ZohoBI\API\Facade;
namespace Dfe\ZohoBI\Test;
use Dfe\ZohoBI\App;
use Dfe\ZohoBI\API\Facade;
/**
* 2017-07-07
* @see \Dfe\ZohoBooks\Test\TestCase
* @see \Dfe\ZohoInventory\Test\TestCase
*/
abstract class TestCase extends \Df\Zoho\Test\TestCase {
abstract class TestCase extends \Dfe\Zoho\Test\TestCase {
/**
* 2017-07-07
* @used-by \Dfe\ZohoBooks\Test\Basic::t02_organizations()
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/zoho-bi"
,"version": "0.2.0"
,"version": "0.2.1"
,"description": "A common library for my «Zoho Books» and «Zoho Inventory» Magento 2 extensions"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/tags/zoho"
Expand All @@ -12,7 +12,7 @@
"role": "Developer"
}]
,"require": {"mage2pro/core": ">5.9.7", "mage2pro/zoho": ">=0.0.8"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Df\\ZohoBI\\": ""}}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\ZohoBI\\": ""}}
,"keywords": [
"Zoho"
,"Accounting"
Expand Down
4 changes: 2 additions & 2 deletions etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation='urn:magento:framework:Module/etc/module.xsd'
>
<module name='Df_ZohoBI' setup_version='1.0.0'>
<module name='Dfe_ZohoBI' setup_version='1.0.0'>
<sequence>
<module name='Df_Zoho'/>
<module name='Dfe_Zoho'/>
</sequence>
</module>
</config>
2 changes: 1 addition & 1 deletion registration.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
use Magento\Framework\Component\ComponentRegistrar as R;
R::register(R::MODULE, 'Df_ZohoBI', __DIR__);
R::register(R::MODULE, 'Dfe_ZohoBI', __DIR__);
# 2017-04-25, 2017-12-13
# Unfortunately, I have not found a way to make this code reusable among my modules.
# I tried to move this code to a `/lib` function like df_lib(), but it raises a «chicken and egg» problem,
Expand Down

0 comments on commit c8371ea

Please sign in to comment.