Commit 9273b3f3 authored by waltermazza's avatar waltermazza
Browse files

Arter namespace

parent 48537583
......@@ -6,7 +6,7 @@
"notifiche",
"yii2"
],
"homepage": "http://www.elitedivision.it/",
"homepage": "http://www.arter.it/",
"type": "component",
"license": "BSD-3-Clause",
"support": {
......@@ -30,10 +30,10 @@
},
"autoload": {
"psr-4": {
"elitedivision\\amos\\emailmanager\\": "src"
"arter\\amos\\emailmanager\\": "src"
}
},
"scripts": {
"post-install-cmd": "php yii migrate --migrationPath=@vendor/elitedivision/amos-email-manager/migrations --interactive=0"
"post-install-cmd": "php yii migrate --migrationPath=@vendor/arter/amos-email-manager/migrations --interactive=0"
}
}
\ No newline at end of file
......@@ -5,16 +5,16 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email
* @package arter\amos\email
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\emailmanager;
namespace arter\amos\emailmanager;
use elitedivision\amos\core\module\AmosModule;
use elitedivision\amos\emailmanager\base\AmosEmailManager;
use elitedivision\amos\emailmanager\models\EmailView;
use arter\amos\core\module\AmosModule;
use arter\amos\emailmanager\base\AmosEmailManager;
use arter\amos\emailmanager\models\EmailView;
use yii\base\BootstrapInterface;
use yii\console\Application;
use yii\log\Logger;
......@@ -38,7 +38,7 @@ class AmosEmail extends AmosModule implements BootstrapInterface
*/
public $defaultTemplate = "layout_default";
public $defaultLayout = "layout_fancy";
public $controllerNamespace = 'elitedivision\amos\emailmanager\controllers';
public $controllerNamespace = 'arter\amos\emailmanager\controllers';
private $emailManager = null;
......@@ -58,13 +58,13 @@ class AmosEmail extends AmosModule implements BootstrapInterface
{
parent::init();
\Yii::setAlias('@email', __DIR__ . '/');
\Yii::setAlias('@elitedivision/amos/emailmanager/commands', __DIR__ . '/commands/');
\Yii::setAlias('@arter/amos/emailmanager/commands', __DIR__ . '/commands/');
// initialize the module with the configuration loaded from config.php
\Yii::configure($this, require(__DIR__ . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.php'));
if (Yii::$app instanceof \yii\web\Application) {
$this->controllerMap = array(
'spool' => 'elitedivision\amos\emailmanager\controllers\EmailSpoolController',
'template' => 'elitedivision\amos\emailmanager\controllers\EmailTemplateController',
'spool' => 'arter\amos\emailmanager\controllers\EmailSpoolController',
'template' => 'arter\amos\emailmanager\controllers\EmailTemplateController',
);
}
$this->initializeEmailManager();
......@@ -89,7 +89,7 @@ class AmosEmail extends AmosModule implements BootstrapInterface
public function bootstrap($app)
{
if ($app instanceof Application) {
$this->controllerNamespace = 'elitedivision\amos\emailmanager\commands';
$this->controllerNamespace = 'arter\amos\emailmanager\commands';
}
}
......
......@@ -11,13 +11,13 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run
```bash
composer require elitedivision/amos-email-manager
composer require arter/amos-email-manager
```
or add this row
```
"elitedivision/amos-email-manager": "dev-master"
"arter/amos-email-manager": "dev-master"
```
to the require section of your `composer.json` file.
......@@ -30,7 +30,7 @@ Add module to your main config in common like this:
<?php
'modules' => [
'email' => [
'class' => 'elitedivision\amos\emailmanager\AmosEmail',
'class' => 'arter\amos\emailmanager\AmosEmail',
'templatePath' => '@common/mail/emails',
],
],
......@@ -41,7 +41,7 @@ Add module to your main config in common like this:
To apply migrations you can launch this command:
```bash
php yii migrate/up --migrationPath=@vendor/elitedivision/amos-email-manager/src/migrations
php yii migrate/up --migrationPath=@vendor/arter/amos-email-manager/src/migrations
```
or add this row to your migrations config in console:
......@@ -49,6 +49,6 @@ or add this row to your migrations config in console:
```php
<?php
return [
'@vendor/elitedivision/amos-email-manager/src/migrations',
'@vendor/arter/amos-email-manager/src/migrations',
];
```
......@@ -5,23 +5,23 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email
* @package arter\amos\email
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\emailmanager\assets;
namespace arter\amos\emailmanager\assets;
use Yii;
use yii\web\AssetBundle;
/**
* Class AmosMailAsset
* @package elitedivision\amos\emailmanager\assets
* @package arter\amos\emailmanager\assets
*/
class AmosMailAsset extends AssetBundle
{
public $sourcePath = '@vendor/elitedivision/amos-email-manager/src/assets/web';
public $sourcePath = '@vendor/arter/amos-email-manager/src/assets/web';
public $css = [
'css/less/amos_mail.less'
......@@ -34,9 +34,9 @@ class AmosMailAsset extends AssetBundle
{
$moduleL = Yii::$app->getModule('layout');
if (!empty($moduleL)) {
$this->depends [] = 'elitedivision\amos\layout\assets\BaseAsset';
$this->depends [] = 'arter\amos\layout\assets\BaseAsset';
} else {
$this->depends [] = 'elitedivision\amos\core\views\assets\AmosCoreAsset';
$this->depends [] = 'arter\amos\core\views\assets\AmosCoreAsset';
}
parent::init(); // TODO: Change the autogenerated stub
}
......
@import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/variables.less";
@import (optional) "../../vendor/elitedivision/amos-core/views/assets/web/css/less/variables.less";
@import (optional) "../../vendor/arter/amos-layout/src/assets/resources/base/less/variables.less";
@import (optional) "../../vendor/arter/amos-core/views/assets/web/css/less/variables.less";
.section-data {
.mail_message_info {
......
@import "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/variables.less";
@import "../../vendor/arter/amos-layout/src/assets/resources/base/less/variables.less";
@import "variables-email-manager.less";
.section-data {
......
......@@ -5,19 +5,19 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email
* @package arter\amos\email
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\emailmanager\base;
namespace arter\amos\emailmanager\base;
use elitedivision\amos\emailmanager\interfaces\ManagerInterface;
use elitedivision\amos\emailmanager\interfaces\TransportInterface;
use elitedivision\amos\emailmanager\models\EmailSpool;
use elitedivision\amos\emailmanager\models\EmailTemplate;
use elitedivision\amos\emailmanager\models\File;
use elitedivision\amos\emailmanager\transports\YiiMailer;
use arter\amos\emailmanager\interfaces\ManagerInterface;
use arter\amos\emailmanager\interfaces\TransportInterface;
use arter\amos\emailmanager\models\EmailSpool;
use arter\amos\emailmanager\models\EmailTemplate;
use arter\amos\emailmanager\models\File;
use arter\amos\emailmanager\transports\YiiMailer;
use Mustache_Engine;
use Yii;
use yii\base\Exception;
......@@ -393,7 +393,7 @@ class AmosEmailManager implements ManagerInterface
/**
*
* @param array $files
* @return \elitedivision\amos\emailmanager\base\File
* @return \arter\amos\emailmanager\base\File
*/
private function loadFiles(array $files)
{
......
......@@ -5,12 +5,12 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email
* @package arter\amos\email
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\emailmanager\base;
namespace arter\amos\emailmanager\base;
use yii\base\Exception;
use yii\redactor\RedactorModule;
......
......@@ -5,12 +5,12 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email
* @package arter\amos\email
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\emailmanager\commands;
namespace arter\amos\emailmanager\commands;
use Exception;
use Yii;
......
......@@ -5,7 +5,7 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email
* @package arter\amos\email
* @category CategoryName
* @author Elite Division S.r.l.
*/
......
......@@ -5,16 +5,16 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email
* @package arter\amos\email
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\emailmanager\controllers;
namespace arter\amos\emailmanager\controllers;
use Yii;
use yii\helpers\Url;
use elitedivision\amos\dashboard\controllers\base\DashboardController;
use arter\amos\dashboard\controllers\base\DashboardController;
class DefaultController extends DashboardController
......
......@@ -5,19 +5,19 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email
* @package arter\amos\email
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\emailmanager\controllers;
namespace arter\amos\emailmanager\controllers;
use elitedivision\amos\core\controllers\CrudController;
use elitedivision\amos\core\helpers\Html;
use elitedivision\amos\core\icons\AmosIcons;
use elitedivision\amos\emailmanager\AmosEmail;
use elitedivision\amos\emailmanager\models\EmailSpool;
use elitedivision\amos\emailmanager\models\search\EmailSpoolSearch;
use arter\amos\core\controllers\CrudController;
use arter\amos\core\helpers\Html;
use arter\amos\core\icons\AmosIcons;
use arter\amos\emailmanager\AmosEmail;
use arter\amos\emailmanager\models\EmailSpool;
use arter\amos\emailmanager\models\search\EmailSpoolSearch;
use Yii;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
......@@ -192,7 +192,7 @@ class EmailSpoolController extends CrudController
$module = \Yii::$app->getModule('layout');
if (empty($module)) {
if (strpos($this->layout, '@') === false) {
$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;
}
......
......@@ -5,19 +5,19 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email
* @package arter\amos\email
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\emailmanager\controllers;
namespace arter\amos\emailmanager\controllers;
use elitedivision\amos\core\controllers\CrudController;
use elitedivision\amos\core\helpers\Html;
use elitedivision\amos\core\icons\AmosIcons;
use elitedivision\amos\emailmanager\AmosEmail;
use elitedivision\amos\emailmanager\models\EmailTemplate;
use elitedivision\amos\emailmanager\models\search\EmailTemplateSearch;
use arter\amos\core\controllers\CrudController;
use arter\amos\core\helpers\Html;
use arter\amos\core\icons\AmosIcons;
use arter\amos\emailmanager\AmosEmail;
use arter\amos\emailmanager\models\EmailTemplate;
use arter\amos\emailmanager\models\search\EmailTemplateSearch;
use Yii;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
......@@ -177,7 +177,7 @@ class EmailTemplateController extends CrudController
$module = \Yii::$app->getModule('layout');
if (empty($module)) {
if (strpos($this->layout, '@') === false) {
$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;
}
......
......@@ -5,18 +5,18 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\emailmanager\controllers
* @package arter\amos\emailmanager\controllers
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\emailmanager\controllers;
namespace arter\amos\emailmanager\controllers;
/**
* Class EmailViewController
* This is the class for controller "EmailViewController".
* @package elitedivision\amos\emailmanager\controllers
* @package arter\amos\emailmanager\controllers
*/
class EmailViewController extends \elitedivision\amos\emailmanager\controllers\base\EmailViewController
class EmailViewController extends \arter\amos\emailmanager\controllers\base\EmailViewController
{
}
......@@ -4,12 +4,12 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\emailmanager\controllers\api;
namespace arter\amos\emailmanager\controllers\api;
/**
* This is the class for REST controller "EmailViewController".
......@@ -21,5 +21,5 @@ use yii\rest\ActiveController;
class EmailViewController extends ActiveController
{
public $modelClass = 'elitedivision\amos\emailmanager\models\EmailView';
public $modelClass = 'arter\amos\emailmanager\models\EmailView';
}
......@@ -4,22 +4,22 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\emailmanager\controllers\base
* @package arter\amos\emailmanager\controllers\base
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\emailmanager\controllers\base;
namespace arter\amos\emailmanager\controllers\base;
use Yii;
use elitedivision\amos\emailmanager\models\EmailView;
use elitedivision\amos\emailmanager\models\search\EmailViewSearch;
use elitedivision\amos\core\controllers\CrudController;
use elitedivision\amos\core\module\BaseAmosModule;
use arter\amos\emailmanager\models\EmailView;
use arter\amos\emailmanager\models\search\EmailViewSearch;
use arter\amos\core\controllers\CrudController;
use arter\amos\core\module\BaseAmosModule;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use elitedivision\amos\core\icons\AmosIcons;
use elitedivision\amos\core\helpers\Html;
use elitedivision\amos\core\helpers\T;
use arter\amos\core\icons\AmosIcons;
use arter\amos\core\helpers\Html;
use arter\amos\core\helpers\T;
use yii\helpers\Url;
......@@ -27,10 +27,10 @@ use yii\helpers\Url;
* Class EmailViewController
* EmailViewController implements the CRUD actions for EmailView model.
*
* @property \elitedivision\amos\emailmanager\models\EmailView $model
* @property \elitedivision\amos\emailmanager\models\search\EmailViewSearch $modelSearch
* @property \arter\amos\emailmanager\models\EmailView $model
* @property \arter\amos\emailmanager\models\search\EmailViewSearch $modelSearch
*
* @package elitedivision\amos\emailmanager\controllers\base
* @package arter\amos\emailmanager\controllers\base
*/
class EmailViewController extends CrudController
{
......
......@@ -5,7 +5,7 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email\i18n\en-GB
* @package arter\amos\email\i18n\en-GB
* @category CategoryName
* @author Elite Division S.r.l.
*/
......
......@@ -5,7 +5,7 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email\i18n\en-US
* @package arter\amos\email\i18n\en-US
* @category CategoryName
* @author Elite Division S.r.l.
*/
......
......@@ -5,7 +5,7 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email\i18n\it-IT
* @package arter\amos\email\i18n\it-IT
* @category CategoryName
* @author Elite Division S.r.l.
*/
......
......@@ -5,12 +5,12 @@
* OPEN 2.0
*
*
* @package elitedivision\amos\email
* @package arter\amos\email
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace elitedivision\amos\emailmanager\interfaces;
namespace arter\amos\emailmanager\interfaces;
interface ManagerInterface
{
......
Markdown is supported
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