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 0606570 commit 6e0a9d8
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 25 deletions.
10 changes: 5 additions & 5 deletions API/Client.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace Df\Zoho\API;
use Df\Zoho\Settings as S;
namespace Dfe\Zoho\API;
use Dfe\Zoho\Settings as S;
/**
* 2017-07-05
* @see \Df\ZohoBI\API\Client
* @see \Dfe\ZohoBI\API\Client
* @see \Dfe\ZohoCRM\API\Client
*/
abstract class Client extends \Df\API\Client {
Expand All @@ -12,7 +12,7 @@ abstract class Client extends \Df\API\Client {
* @override
* @see \Df\API\Client::_construct()
* @used-by \Df\API\Client::__construct()
* @see \Df\ZohoBI\API\Client::_construct()
* @see \Dfe\ZohoBI\API\Client::_construct()
*/
final protected function _construct() {parent::_construct(); $this->resJson();}

Expand All @@ -24,7 +24,7 @@ protected function ss():S {return dfs($this);}

/**
* 2017-07-06
* @used-by \Df\ZohoBI\API\Facade::p()
* @used-by \Dfe\ZohoBI\API\Facade::p()
* @param string|object $m
* @param array(string => mixed) $p [optional]
*/
Expand Down
10 changes: 5 additions & 5 deletions App.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Df\Zoho;
namespace Dfe\Zoho;
/**
* 2017-07-06
* @see \Df\ZohoBI\App
* @see \Dfe\ZohoBI\App
* @see \Dfe\ZohoCRM\App
*/
abstract class App {
Expand All @@ -15,7 +15,7 @@ function ss():Settings {return dfs($this);}
/**
* 2017-07-06 It returns one of the following strings: «Books», «CRM», «Inventory».
* @used-by self::titleLc()
* @used-by \Df\ZohoBI\API\Validator::title()
* @used-by \Dfe\ZohoBI\API\Validator::title()
*/
final function title():string {return dfc($this, function():string {return df_assert_in(df_result_sne(
# 2017-07-09 An alternative implementation is: df_explode_camel(df_class_second($this))[1]
Expand All @@ -24,8 +24,8 @@ final function title():string {return dfc($this, function():string {return df_as

/**
* 2017-07-06 It returns one of the following strings: «books», «crm», «inventory»
* @used-by \Df\ZohoBI\API\Client::urlBase()
* @used-by \Df\Zoho\Settings::prefix()
* @used-by \Dfe\ZohoBI\API\Client::urlBase()
* @used-by \Dfe\Zoho\Settings::prefix()
*/
final function titleLc():string {return strtolower($this->title());}

Expand Down
8 changes: 4 additions & 4 deletions Settings.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php
namespace Df\Zoho;
namespace Dfe\Zoho;
/**
* 2017-07-05
* @see \Df\ZohoBI\Settings
* @see \Dfe\ZohoBI\Settings
* @see \Dfe\ZohoBooks\Settings
* @method static Settings s()
*/
abstract class Settings extends \Df\Config\Settings {
/**
* 2017-07-05 «Authentication Token
* @used-by \Df\ZohoBI\API\Client::headers()
* @used-by \Df\ZohoBI\Source\Organization::isRequirementMet()
* @used-by \Dfe\ZohoBI\API\Client::headers()
* @used-by \Dfe\ZohoBI\Source\Organization::isRequirementMet()
* @used-by \Dfe\ZohoCRM\API\Client::commonParams()
*/
final function token():string {return $this->p();}
Expand Down
2 changes: 1 addition & 1 deletion Test/Basic.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Df\Zoho\Test;
namespace Dfe\Zoho\Test;
# 2017-07-05
final class Basic extends TestCase {
/** 2017-07-05 @test */
Expand Down
6 changes: 3 additions & 3 deletions Test/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace Df\Zoho\Test;
namespace Dfe\Zoho\Test;
/**
* 2017-07-05
* @see \Df\Zoho\Test\Basic
* @see \Df\ZohoBI\Test\TestCase
* @see \Dfe\Zoho\Test\Basic
* @see \Dfe\ZohoBI\Test\TestCase
* @see \Dfe\ZohoCRM\Test\TestCase
*/
abstract class TestCase extends \Df\Core\TestCase {}
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"
,"version": "0.2.0"
,"version": "0.2.1"
,"description": "A common Zoho applications library for my «Zoho CRM», «Zoho Inventory», and «Zoho Books» Magento 2 extensions"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/tags/zoho"
Expand All @@ -12,7 +12,7 @@
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=3.6.5"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Df\\Zoho\\": ""}}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Zoho\\": ""}}
,"keywords": [
"Zoho"
,"eCommerce"
Expand Down
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ So, if you have installed `mage2pro/core`, but do not have installed any Mage2.P
<label>Zoho</label>
<class>separator-top</class>
<!-- 2015-10-05 https://mage2.pro/t/114 -->
<resource>Df_Zoho::config</resource>
<resource>Dfe_Zoho::config</resource>
</section>
</system>
</config>
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation='urn:magento:framework:Module/etc/module.xsd'
>
<module name='Df_Zoho' setup_version='1.0.0'>
<module name='Dfe_Zoho' setup_version='1.0.0'>
<sequence>
<module name='Df_Core'/>
</sequence>
Expand Down
4 changes: 2 additions & 2 deletions lib/main.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
use Df\Zoho\App;
use Dfe\Zoho\App;
/**
* 2017-07-06
* @used-by \Df\ZohoBI\Source\Organization::app()
* @used-by \Dfe\ZohoBI\Source\Organization::app()
* @param string|object $c
*/
function df_zoho_app($c):App {return App::s($c);}
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_Zoho', __DIR__);
R::register(R::MODULE, 'Dfe_Zoho', __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 6e0a9d8

Please sign in to comment.