Skip to content

Commit

Permalink
Update namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafasoufi committed Jun 25, 2022
1 parent ead013e commit 5a38fad
Show file tree
Hide file tree
Showing 45 changed files with 161 additions and 169 deletions.
24 changes: 8 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@
{
"name": "veronalabs/framework",
"description": "",
"name": "veronalabs/rabbit",
"description": "A modern way of building WordPress plugins.",
"keywords": [
"wordpress",
"pressmodo",
"sematico",
"backyard",
"rabbit",
"framework"
],
"homepage": "https://backyard.sematico.com",
"license": "GPL-3.0-or-later",
"authors": [
{
"name": "Alessandro Tesoro",
"email": "[email protected]",
"homepage": "https://sematico.com",
"role": "Founder & MD"
}
],
"homepage": "https://github.com/veronalabs/rabbit",
"license": "MIT",
"support": {
"issues": "https://github.com/backyardwp/framework/issues"
"issues": "https://github.com/veronalabs/rabbit/issues"
},
"autoload": {
"psr-4": {
"Backyard\\": "src"
"Rabbit\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Backyard\\Tests\\": "tests"
"Rabbit\\Tests\\": "tests"
}
},
"require": {
Expand Down
30 changes: 15 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
convertWarningsToExceptions="true"
>
<testsuites>
<testsuite name="Backyard Foundation">
<testsuite name="Rabbit Foundation">
<directory prefix="Test" suffix=".php">./tests/</directory>
<exclude>./tests/test-sample.php</exclude>
</testsuite>
Expand Down
8 changes: 4 additions & 4 deletions src/Application.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php // phpcs:ignore WordPress.Files.FileName
/**
* Backyard plugin application.
* Rabbit plugin application.
*
* @package backyard-framwork
* @package rabbit-framework
* @author Sematico LTD <[email protected]>
* @copyright 2020 Sematico LTD
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL-3.0-or-later
* @link https://sematico.com
*/

namespace Backyard;
namespace Rabbit;

use Backyard\Utils\Singleton;
use Rabbit\Utils\Singleton;

/**
* Framework application wrapper.
Expand Down
6 changes: 3 additions & 3 deletions src/Cache/ObjectCache.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php // phpcs:ignore WordPress.Files.FileName
/**
* Backyard object cache helper
* Rabbit object cache helper
*
* @package backyard-cache
* @package rabbit-cache
* @author Sematico LTD <[email protected]>
* @copyright 2020 Sematico LTD
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL-3.0-or-later
* @link https://sematico.com
*/

namespace Backyard\Cache;
namespace Rabbit\Cache;

/**
* Object cache helper
Expand Down
6 changes: 3 additions & 3 deletions src/Cache/Transient.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php // phpcs:ignore WordPress.Files.FileName
/**
* Backyard transients helper
* Rabbit transients helper
*
* @package backyard-framework
* @package rabbit-framework
* @author Sematico LTD <[email protected]>
* @copyright 2020 Sematico LTD
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL-3.0-or-later
* @link https://sematico.com
*/

namespace Backyard\Cache;
namespace Rabbit\Cache;

/**
* Transients helper.
Expand Down
4 changes: 2 additions & 2 deletions src/Contracts/BootablePluginProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
/**
* Bootable plugin provider interface.
*
* @package backyard-framework
* @package rabbit-framework
* @author Sematico LTD <[email protected]>
* @copyright 2020 Sematico LTD
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL-3.0-or-later
* @link https://sematico.com
*/

namespace Backyard\Contracts;
namespace Rabbit\Contracts;

use League\Container\ServiceProvider\ServiceProviderInterface;

Expand Down
4 changes: 2 additions & 2 deletions src/Contracts/FormRendererInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
/**
* Form render interface.
*
* @package backyard-framework
* @package rabbit-framework
* @author Sematico LTD <[email protected]>
* @copyright 2020 Sematico LTD
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL-3.0-or-later
* @link https://sematico.com
*/

namespace Backyard\Contracts;
namespace Rabbit\Contracts;

interface FormRendererInterface {

Expand Down
4 changes: 2 additions & 2 deletions src/Contracts/ParameterBagInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
/**
* Definition of the public contract to be available on a ParameterBag instance
*
* @package backyard-framework
* @package rabbit-framework
* @author Sematico LTD <[email protected]>
* @copyright 2020 Sematico LTD
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL-3.0-or-later
* @link https://sematico.com
*/

namespace Backyard\Contracts;
namespace Rabbit\Contracts;

interface ParameterBagInterface extends \Countable, \IteratorAggregate {

Expand Down
6 changes: 3 additions & 3 deletions src/Contracts/TemplatesEngineExtensionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
/**
* Definition of the public contract to be available on a templates engine extension instance.
*
* @package backyard-framework
* @package rabbit-framework
* @author Sematico LTD <[email protected]>
* @copyright 2020 Sematico LTD
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL-3.0-or-later
* @link https://sematico.com
*/

namespace Backyard\Contracts;
namespace Rabbit\Contracts;

use Backyard\Templates\Engine;
use Rabbit\Templates\Engine;

interface TemplatesEngineExtensionInterface {

Expand Down
4 changes: 2 additions & 2 deletions src/Database/DatabaseServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php // phpcs:ignore WordPress.Files.FileName

namespace Backyard\Database;
namespace Rabbit\Database;

use Backyard\Contracts\BootablePluginProviderInterface;
use Rabbit\Contracts\BootablePluginProviderInterface;
use Illuminate\Database\Capsule\Manager as Capsule;
use League\Container\ServiceProvider\AbstractServiceProvider;
use League\Container\ServiceProvider\BootableServiceProviderInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Exceptions/InvalidNonceException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
/**
* Invalid nonce exception.
*
* @package backyard-framework
* @package rabbit-framework
* @author Sematico LTD <[email protected]>
* @copyright 2020 Sematico LTD
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL-3.0-or-later
* @link https://sematico.com
*/

namespace Backyard\Exceptions;
namespace Rabbit\Exceptions;

use Exception;

Expand Down
4 changes: 2 additions & 2 deletions src/Exceptions/MissingConfigurationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
/**
* Missing configuration setting exception.
*
* @package backyard-framework
* @package rabbit-framework
* @author Sematico LTD <[email protected]>
* @copyright 2020 Sematico LTD
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL-3.0-or-later
* @link https://sematico.com
*/

namespace Backyard\Exceptions;
namespace Rabbit\Exceptions;

use Exception;

Expand Down
6 changes: 3 additions & 3 deletions src/Logger/LoggerServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php // phpcs:ignore WordPress.Files.FileName

namespace Backyard\Logger;
namespace Rabbit\Logger;

use Backyard\Contracts\BootablePluginProviderInterface;
use Backyard\Exceptions\MissingConfigurationException;
use Rabbit\Contracts\BootablePluginProviderInterface;
use Rabbit\Exceptions\MissingConfigurationException;
use League\Container\ServiceProvider\AbstractServiceProvider;
use League\Container\ServiceProvider\BootableServiceProviderInterface;
use LoggerWp\Logger;
Expand Down
6 changes: 3 additions & 3 deletions src/Nonces/Nonce.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
/**
* Nonces handler.
*
* @package backyard-framework
* @package rabbit-framework
* @author Sematico LTD <[email protected]>
* @copyright 2020 Sematico LTD
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL-3.0-or-later
* @link https://sematico.com
*/

namespace Backyard\Nonces;
namespace Rabbit\Nonces;

use Backyard\Exceptions\InvalidNonceException;
use Rabbit\Exceptions\InvalidNonceException;

/**
* WordPress nonces handler & generator
Expand Down
6 changes: 3 additions & 3 deletions src/Nonces/NonceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
/**
* Nonces factory.
*
* @package backyard-nonces
* @package rabbit-nonces
* @author Sematico LTD <[email protected]>
* @copyright 2020 Sematico LTD
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL-3.0-or-later
* @link https://sematico.com
*/

namespace Backyard\Nonces;
namespace Rabbit\Nonces;

use Backyard\Utils\RequestFactory;
use Rabbit\Utils\RequestFactory;

/**
* Nonce factory
Expand Down
Loading

0 comments on commit 5a38fad

Please sign in to comment.