Commit 3780929d authored by waltermazza's avatar waltermazza
Browse files

Arter namespace

parent 88e68fa1
......@@ -11,13 +11,13 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run
```bash
composer require elitedivision/amos-favorites
composer require arter/amos-favorites
```
or add this row
```
"elitedivision/amos-favorites": "dev-master"
"arter/amos-favorites": "dev-master"
```
to the require section of your `composer.json` file.
......@@ -30,11 +30,11 @@ Add module to your main config in backend like this:
<?php
'modules' => [
'favorites' => [
'class' => 'elitedivision\amos\favorites\AmosFavorites',
'class' => 'arter\amos\favorites\AmosFavorites',
'modelsEnabled' => [
/**
* Add here the classnames of the models where you want the comments
* (i.e. 'elitedivision\amos\news\models\News')
* (i.e. 'arter\amos\news\models\News')
*/
]
],
......@@ -46,7 +46,7 @@ Add module to your main config in backend like this:
To apply migrations you can launch this command:
```bash
php yii migrate/up --migrationPath=@vendor/elitedivision/amos-favorites/src/migrations
php yii migrate/up --migrationPath=@vendor/arter/amos-favorites/src/migrations
```
or add this row to your migrations config in console:
......@@ -54,6 +54,6 @@ or add this row to your migrations config in console:
```php
<?php
return [
'@vendor/elitedivision/amos-favorites/src/migrations',
'@vendor/arter/amos-favorites/src/migrations',
];
```
......@@ -22,7 +22,7 @@
},
"autoload": {
"psr-4": {
"elitedivision\\amos\\favorites\\": "src"
"arter\\amos\\favorites\\": "src"
}
}
}
\ No newline at end of file
......@@ -5,19 +5,19 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\favorites
* @package arter\amos\favorites
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\favorites;
namespace arter\amos\favorites;
use elitedivision\amos\core\module\AmosModule;
use elitedivision\amos\core\module\ModuleInterface;
use arter\amos\core\module\AmosModule;
use arter\amos\core\module\ModuleInterface;
/**
* Class AmosFavorites
* @package elitedivision\amos\favorites
* @package arter\amos\favorites
*/
class AmosFavorites extends AmosModule implements ModuleInterface
{
......@@ -33,7 +33,7 @@ class AmosFavorites extends AmosModule implements ModuleInterface
/**
* @inheritdoc
*/
public $controllerNamespace = 'elitedivision\amos\favorites\controllers';
public $controllerNamespace = 'arter\amos\favorites\controllers';
public $newFileMode = 0666;
......@@ -58,7 +58,7 @@ class AmosFavorites extends AmosModule implements ModuleInterface
public function init()
{
parent::init();
\Yii::setAlias('@elitedivision/amos/' . static::getModuleName() . '/controllers/', __DIR__ . '/controllers/');
\Yii::setAlias('@arter/amos/' . static::getModuleName() . '/controllers/', __DIR__ . '/controllers/');
// custom initialization code goes here
\Yii::configure($this, require(__DIR__ . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.php'));
}
......
......@@ -5,7 +5,7 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\favorites\config
* @package arter\amos\favorites\config
* @category CategoryName
* @author Elite Division S.r.l.
*/
......
......@@ -5,25 +5,25 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\favorites\controllers
* @package arter\amos\favorites\controllers
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\favorites\controllers;
namespace arter\amos\favorites\controllers;
use elitedivision\amos\core\record\Record;
use elitedivision\amos\favorites\AmosFavorites;
use elitedivision\amos\favorites\exceptions\FavoritesException;
use elitedivision\amos\favorites\widgets\FavoriteWidget;
use elitedivision\amos\notificationmanager\AmosNotify;
use arter\amos\core\record\Record;
use arter\amos\favorites\AmosFavorites;
use arter\amos\favorites\exceptions\FavoritesException;
use arter\amos\favorites\widgets\FavoriteWidget;
use arter\amos\notificationmanager\AmosNotify;
use Yii;
use yii\web\Controller as YiiController;
use yii\web\NotFoundHttpException;
/**
* Class FavoriteController
* @package elitedivision\amos\favorites\controllers
* @package arter\amos\favorites\controllers
*/
class FavoriteController extends YiiController
{
......@@ -176,7 +176,7 @@ class FavoriteController extends YiiController
}
$module = \Yii::$app->getModule('layout');
if(empty($module)){
$this->layout = '@vendor/elitedivision/amos-core/views/layouts/' . (!empty($layout) ? $layout : $this->layout);
$this->layout = '@vendor/arter/amos-core/views/layouts/' . (!empty($layout) ? $layout : $this->layout);
return true;
}
$this->layout = (!empty($layout)) ? $layout : $this->layout;
......
......@@ -5,16 +5,16 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\favorites\exceptions
* @package arter\amos\favorites\exceptions
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\favorites\exceptions;
namespace arter\amos\favorites\exceptions;
/**
* Class FavoritesException
* @package elitedivision\amos\favorites\exceptions
* @package arter\amos\favorites\exceptions
*/
class FavoritesException extends \Exception
{
......
......@@ -5,7 +5,7 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\favorites\i18n\en-GB
* @package arter\amos\favorites\i18n\en-GB
* @category CategoryName
* @author Elite Division S.r.l.
*/
......
......@@ -5,7 +5,7 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\favorites\i18n\en-US
* @package arter\amos\favorites\i18n\en-US
* @category CategoryName
* @author Elite Division S.r.l.
*/
......
......@@ -5,7 +5,7 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\favorites\i18n\it-IT
* @package arter\amos\favorites\i18n\it-IT
* @category CategoryName
* @author Elite Division S.r.l.
*/
......
......@@ -5,18 +5,18 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\favorites\widgets
* @package arter\amos\favorites\widgets
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\favorites\widgets;
namespace arter\amos\favorites\widgets;
use elitedivision\amos\core\helpers\Html;
use elitedivision\amos\core\icons\AmosIcons;
use elitedivision\amos\favorites\AmosFavorites;
use elitedivision\amos\favorites\exceptions\FavoritesException;
use elitedivision\amos\notificationmanager\AmosNotify;
use arter\amos\core\helpers\Html;
use arter\amos\core\icons\AmosIcons;
use arter\amos\favorites\AmosFavorites;
use arter\amos\favorites\exceptions\FavoritesException;
use arter\amos\notificationmanager\AmosNotify;
use yii\base\Widget;
use yii\web\View;
......@@ -25,14 +25,14 @@ use yii\web\View;
*
* Widget to show the favorite icon.
*
* @package elitedivision\amos\favorites\widgets
* @package arter\amos\favorites\widgets
*/
class FavoriteWidget extends Widget
{
public $layout = '{beginContainerSection}{favoriteButton}{endContainerSection}';
/**
* @var \elitedivision\amos\core\record\Record $model
* @var \arter\amos\core\record\Record $model
*/
public $model;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment