Commit 72a2733d authored by waltermazza's avatar waltermazza
Browse files

Arter namespace

parent 39d8e184
{
"name": "elitedivision/amos-audit",
"name": "arter/amos-audit",
"description": "This is a FORK of Continuous integration version for Yii2 Audit that includes all dependencies",
"keywords": [
"yii2",
......@@ -52,10 +52,10 @@
},
"autoload": {
"psr-4": {
"elitedivision\\amos\\audit\\": "src"
"arter\\amos\\audit\\": "src"
}
},
"extra": {
"bootstrap": "elitedivision\\amos\\audit\\Bootstrap"
"bootstrap": "arter\\amos\\audit\\Bootstrap"
}
}
......@@ -39,10 +39,10 @@
},
"autoload": {
"psr-4": {
"elitedivision\\amos\\audit\\": "src"
"arter\\amos\\audit\\": "src"
}
},
"extra": {
"bootstrap": "elitedivision\\amos\\audit\\Bootstrap"
"bootstrap": "arter\\amos\\audit\\Bootstrap"
}
}
\ No newline at end of file
......@@ -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.
*/
/**
* This IS A FORK of bedezign yii2 audit to customize it for elitedivision requests
* This IS A FORK of bedezign yii2 audit to customize it for arter requests
*
* This serves as both the Module for the MVC part of the audit and the configuration/entry point for the actual
* audit process.
......@@ -19,10 +19,10 @@
* @copyright 2014-2015 B&E DeZign
*/
namespace elitedivision\amos\audit;
namespace arter\amos\audit;
use elitedivision\amos\audit\components\panels\Panel;
use elitedivision\amos\audit\models\AuditEntry;
use arter\amos\audit\components\panels\Panel;
use arter\amos\audit\models\AuditEntry;
use Yii;
use yii\base\ActionEvent;
......@@ -39,23 +39,23 @@ use yii\helpers\ArrayHelper;
* To configure it you need to do 2 things:
* - add a module configuration entry:
* 'modules' => [
* 'audit' => 'elitedivision\amos\audit\Audit',
* 'audit' => 'arter\amos\audit\Audit',
* ]
* or optionally with configuration:
* 'modules' => [
* 'audit' => [
* 'class' => 'elitedivision\amos\audit\Audit',
* 'class' => 'arter\amos\audit\Audit',
* 'ignoreActions' => ['debug/*']
* ]
* - If you want to auto track actions, be sure to add the module to the application bootstrapping:
* 'bootstrap' => ['audit'],
*
* @package elitedivision\amos\audit
* @package arter\amos\audit
* @property AuditEntry $entry
*
* @method void data($type, $data) @see ExtraDataPanel::trackData()
* @method \elitedivision\amos\audit\models\AuditError exception(\Exception $exception) @see ErrorPanel::log()
* @method \elitedivision\amos\audit\models\AuditError errorMessage($message, $code, $file, $line, $trace) @see ErrorPanel::logMessage()
* @method \arter\amos\audit\models\AuditError exception(\Exception $exception) @see ErrorPanel::log()
* @method \arter\amos\audit\models\AuditError errorMessage($message, $code, $file, $line, $trace) @see ErrorPanel::logMessage()
*/
class Audit extends Module
{
......@@ -185,21 +185,21 @@ class Audit extends Module
*/
private $_corePanels = [
// Tracking/logging panels
'audit/request' => ['class' => 'elitedivision\amos\audit\panels\RequestPanel'],
'audit/db' => ['class' => 'elitedivision\amos\audit\panels\DbPanel'],
'audit/log' => ['class' => 'elitedivision\amos\audit\panels\LogPanel'],
'audit/asset' => ['class' => 'elitedivision\amos\audit\panels\AssetPanel'],
'audit/config' => ['class' => 'elitedivision\amos\audit\panels\ConfigPanel'],
'audit/profiling' => ['class' => 'elitedivision\amos\audit\panels\ProfilingPanel'],
'audit/request' => ['class' => 'arter\amos\audit\panels\RequestPanel'],
'audit/db' => ['class' => 'arter\amos\audit\panels\DbPanel'],
'audit/log' => ['class' => 'arter\amos\audit\panels\LogPanel'],
'audit/asset' => ['class' => 'arter\amos\audit\panels\AssetPanel'],
'audit/config' => ['class' => 'arter\amos\audit\panels\ConfigPanel'],
'audit/profiling' => ['class' => 'arter\amos\audit\panels\ProfilingPanel'],
// Special other panels
'audit/error' => ['class' => 'elitedivision\amos\audit\panels\ErrorPanel'],
'audit/javascript' => ['class' => 'elitedivision\amos\audit\panels\JavascriptPanel'],
'audit/trail' => ['class' => 'elitedivision\amos\audit\panels\TrailPanel'],
'audit/mail' => ['class' => 'elitedivision\amos\audit\panels\MailPanel'],
'audit/extra' => ['class' => 'elitedivision\amos\audit\panels\ExtraDataPanel'],
'audit/curl' => ['class' => 'elitedivision\amos\audit\panels\CurlPanel'],
'audit/soap' => ['class' => 'elitedivision\amos\audit\panels\SoapPanel'],
'audit/error' => ['class' => 'arter\amos\audit\panels\ErrorPanel'],
'audit/javascript' => ['class' => 'arter\amos\audit\panels\JavascriptPanel'],
'audit/trail' => ['class' => 'arter\amos\audit\panels\TrailPanel'],
'audit/mail' => ['class' => 'arter\amos\audit\panels\MailPanel'],
'audit/extra' => ['class' => 'arter\amos\audit\panels\ExtraDataPanel'],
'audit/curl' => ['class' => 'arter\amos\audit\panels\CurlPanel'],
'audit/soap' => ['class' => 'arter\amos\audit\panels\SoapPanel'],
];
/**
......@@ -208,7 +208,7 @@ class Audit extends Module
private $_panelFunctions = [];
/**
* @var \elitedivision\amos\audit\models\AuditEntry If activated this is the active entry
* @var \arter\amos\audit\models\AuditEntry If activated this is the active entry
*/
private $_entry = null;
......
......@@ -4,13 +4,13 @@
* 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\audit;
namespace arter\amos\audit;
use elitedivision\amos\audit\models\AuditTrail;
use arter\amos\audit\models\AuditTrail;
use Yii;
use yii\base\Behavior;
......@@ -20,7 +20,7 @@ use yii\db\Query;
/**
* Class AuditTrailBehavior
* @package elitedivision\amos\audit
* @package arter\amos\audit
*
* @property \yii\db\ActiveRecord $owner
*/
......
......@@ -4,19 +4,19 @@
* 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\audit;
namespace arter\amos\audit;
use yii\base\Application;
use yii\base\BootstrapInterface;
/**
* Bootstrap
* @package elitedivision\amos\audit
* @package arter\amos\audit
*/
class Bootstrap implements BootstrapInterface
{
......@@ -28,10 +28,10 @@ class Bootstrap implements BootstrapInterface
public function bootstrap($app)
{
// Make sure to register the base folder as alias as well or things like assets won't work anymore
\Yii::setAlias('@elitedivision/amos/audit', __DIR__);
\Yii::setAlias('@arter/amos/audit', __DIR__);
if ($app instanceof \yii\console\Application) {
$app->controllerMap['audit'] = 'elitedivision\amos\audit\commands\AuditController';
$app->controllerMap['audit'] = 'arter\amos\audit\commands\AuditController';
}
$moduleName = Audit::findModuleIdentifier();
......@@ -46,7 +46,7 @@ class Bootstrap implements BootstrapInterface
$app->i18n->translations['audit'] = [
'class' => 'yii\i18n\PhpMessageSource',
'sourceLanguage' => 'en',
'basePath' => '@elitedivision/amos/audit/messages',
'basePath' => '@arter/amos/audit/messages',
];
}
......
......@@ -4,7 +4,7 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
......@@ -14,14 +14,14 @@
* @license http://www.yiiframework.com/license/
*/
namespace elitedivision\amos\audit;
namespace arter\amos\audit;
use Yii;
use yii\log\Target;
/**
* LogTarget
* @package elitedivision\amos\audit
* @package arter\amos\audit
*/
class LogTarget extends Target
{
......
......@@ -4,19 +4,19 @@
* 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\audit;
namespace arter\amos\audit;
use yii\base\Component;
/**
* Class Provider
* @package elitedivision\amos\audit
* @package arter\amos\audit
*/
class Provider extends Component
{
......
......@@ -4,17 +4,17 @@
* 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\audit\commands;
namespace arter\amos\audit\commands;
use elitedivision\amos\audit\Audit;
use elitedivision\amos\audit\components\panels\Panel;
use elitedivision\amos\audit\models\AuditEntry;
use elitedivision\amos\audit\models\AuditError;
use arter\amos\audit\Audit;
use arter\amos\audit\components\panels\Panel;
use arter\amos\audit\models\AuditEntry;
use arter\amos\audit\models\AuditError;
use Yii;
use yii\base\Exception;
......@@ -27,7 +27,7 @@ use yii\helpers\Url;
/**
* Task runner commands for Audit.
*
* @package elitedivision\amos\audit\commands
* @package arter\amos\audit\commands
*/
class AuditController extends Controller
{
......
......@@ -4,14 +4,14 @@
* 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\audit\components;
namespace arter\amos\audit\components;
use elitedivision\amos\audit\Audit;
use arter\amos\audit\Audit;
use Yii;
use yii\base\Component;
use yii\di\Instance;
......
......@@ -4,7 +4,7 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
......@@ -12,15 +12,15 @@
* Provides a number of helper functions for the audit component
*/
namespace elitedivision\amos\audit\components;
namespace arter\amos\audit\components;
use elitedivision\amos\audit\Audit;
use arter\amos\audit\Audit;
use yii\helpers\ArrayHelper;
use yii\helpers\VarDumper;
/**
* Helper
* @package elitedivision\amos\audit\components
* @package arter\amos\audit\components
*/
class Helper extends \yii\base\BaseObject
{
......
......@@ -4,19 +4,19 @@
* 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\audit\components;
namespace arter\amos\audit\components;
use elitedivision\amos\audit\Audit;
use arter\amos\audit\Audit;
/**
* Class Migration
* @package elitedivision\amos\audit\components
* @package arter\amos\audit\components
*/
class Migration extends \yii\db\Migration
{
......
......@@ -4,13 +4,13 @@
* 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\audit\components;
namespace arter\amos\audit\components;
use elitedivision\amos\audit\Audit;
use arter\amos\audit\Audit;
class SoapClient extends \SoapClient
{
......
......@@ -4,19 +4,19 @@
* 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\audit\components;
namespace arter\amos\audit\components;
use elitedivision\amos\audit\models\AuditTrail;
use arter\amos\audit\models\AuditTrail;
use yii\base\Component;
use yii\db\ActiveRecord;
/**
* Version
* @package elitedivision\amos\audit
* @package arter\amos\audit
*/
class Version extends Component
{
......
......@@ -4,7 +4,7 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
......@@ -12,17 +12,17 @@
* Error Handler allows errors to be logged to the audit_error table.
*/
namespace elitedivision\amos\audit\components\base;
namespace arter\amos\audit\components\base;
use elitedivision\amos\audit\Audit;
use elitedivision\amos\audit\models\AuditError;
use elitedivision\amos\audit\panels\ErrorPanel;
use arter\amos\audit\Audit;
use arter\amos\audit\models\AuditError;
use arter\amos\audit\panels\ErrorPanel;
use Exception;
use Yii;
/**
* ErrorHandlerTrait
* @package elitedivision\amos\audit\components\base
* @package arter\amos\audit\components\base
*/
trait ErrorHandlerTrait
{
......
......@@ -4,7 +4,7 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
......@@ -12,13 +12,13 @@
* Console compatible error handler
*/
namespace elitedivision\amos\audit\components\console;
namespace arter\amos\audit\components\console;
use elitedivision\amos\audit\components\base\ErrorHandlerTrait;
use arter\amos\audit\components\base\ErrorHandlerTrait;
/**
* ErrorHandler
* @package elitedivision\amos\audit\components\console
* @package arter\amos\audit\components\console
*/
class ErrorHandler extends \yii\console\ErrorHandler
{
......
......@@ -4,7 +4,7 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
......@@ -13,14 +13,14 @@
* raw data attributes.
*/
namespace elitedivision\amos\audit\components\db;
namespace arter\amos\audit\components\db;
use elitedivision\amos\audit\Audit;
use elitedivision\amos\audit\components\Helper;
use arter\amos\audit\Audit;
use arter\amos\audit\components\Helper;
/**
* ActiveRecord
* @package elitedivision\amos\audit\models
* @package arter\amos\audit\models
* @property string $created
*/
class ActiveRecord extends \yii\db\ActiveRecord
......
......@@ -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\audit\components\panels;
namespace arter\amos\audit\components\panels;
class DataStoragePanel extends \yii\debug\Panel
{
......
......@@ -4,16 +4,16 @@
* 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\audit\components\panels;
namespace arter\amos\audit\components\panels;
/**
* DataStoragePanelTrait
* @package elitedivision\amos\audit\components\panels
* @package arter\amos\audit\components\panels
*/
trait DataStoragePanelTrait
{
......
......@@ -4,7 +4,7 @@
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
* @package Open20Package
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
......@@ -16,11 +16,11 @@
* @copyright 2015 B&E DeZign
*/
namespace elitedivision\amos\audit\components\panels;
namespace arter\amos\audit\components\panels;
/**
* Panel
* @package elitedivision\amos\audit\panels
* @package arter\amos\audit\panels
*
* @property array|mixed $data
*/
......
......@@ -4,22 +4,22 @@
* 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\audit\components\panels;
namespace arter\amos\audit\components\panels;
use elitedivision\amos\audit\Audit;
use elitedivision\amos\audit\models\AuditData;
use elitedivision\amos\audit\models\AuditEntry;
use arter\amos\audit\Audit;
use arter\amos\audit\models\AuditData;
use arter\amos\audit\models\AuditEntry;
use yii\helpers\Url;
use yii\web\View;
/**
* PanelTrait
* @package elitedivision\amos\audit\panels
* @package arter\amos\audit\panels
*
* @property Audit $module
* @property array|mixed $data
......
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