mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-01-23 05:08:41 +00:00
phpcs autofixes
This commit is contained in:
parent
26ed5a3f45
commit
8ed012fcdd
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
|
@ -26,7 +26,7 @@ jobs:
|
|||
- name: Setup Composer
|
||||
run: composer install
|
||||
- name: Autoformat
|
||||
run: 'vendor/bin/php-cs-fixer fix ./ --rules=''{"array_syntax": {"syntax": "short"}, "blank_line_after_namespace": true, "global_namespace_import": {"import_classes": false, "import_constants": false, "import_functions": false}, "binary_operator_spaces": {"operators": {"=": "align", ".=": "align", "+=": "align", "-=": "align", "*=": "align", "/=": "align", "|=": "align", "&=": "align", "=>": "align", "??=": "align"}}, "cast_spaces": {"space": "single"}, "class_attributes_separation": { "elements": {"const": "one", "method": "one", "property": "one"} }, "combine_consecutive_issets": true, "compact_nullable_typehint": true, "declare_strict_types": true, "declare_equal_normalize": {"space": "none"}, "elseif": true, "encoding": true, "explicit_indirect_variable": true, "explicit_string_variable": true, "function_to_constant": true, "implode_call": true, "increment_style": {"style": "pre"}, "is_null": true, "yoda_style": {"equal": false, "identical": false, "less_and_greater": false}, "line_ending": true, "logical_operators": true, "lowercase_cast": true, "constant_case": {"case": "lower"}, "lowercase_keywords": true, "modernize_types_casting": true, "native_constant_invocation": true, "native_function_casing": true, "native_function_invocation": {"include": ["@all"]}, "new_with_braces": true, "no_extra_blank_lines": {"tokens": ["break", "case", "continue", "curly_brace_block", "extra", "return", "switch", "throw", "use"]}, "no_spaces_after_function_name": true, "no_alias_functions": true, "no_closing_tag": true, "no_empty_comment": true, "no_empty_phpdoc": true, "no_empty_statement": true, "no_homoglyph_names": true, "no_mixed_echo_print": {"use": "echo"}, "no_php4_constructor": true, "no_singleline_whitespace_before_semicolons": true, "no_spaces_inside_parenthesis": true, "no_trailing_whitespace": true, "no_unneeded_final_method": true, "no_unused_imports": true, "no_useless_return": true, "no_whitespace_before_comma_in_array": true, "no_whitespace_in_blank_line": true, "non_printable_character": true, "normalize_index_brace": true, "ordered_imports": {"sort_algorithm": "alpha"}, "ordered_interfaces": {"order": "alpha"}, "php_unit_construct": true, "php_unit_internal_class": true, "php_unit_set_up_tear_down_visibility": true, "phpdoc_indent": true, "phpdoc_align": {"align": "vertical"}, "phpdoc_annotation_without_dot": true, "phpdoc_scalar": true, "phpdoc_return_self_reference": {"replacements": {"this": "self"}}, "phpdoc_trim": true, "phpdoc_trim_consecutive_blank_line_separation": true, "random_api_migration": true, "self_accessor": true, "return_type_declaration": {"space_before": "one"}, "semicolon_after_instruction": true, "set_type_to_cast": true, "short_scalar_cast": true, "single_blank_line_at_eof": true, "single_line_after_imports": true, "standardize_increment": true, "trailing_comma_in_multiline": true, "trim_array_spaces": true, "visibility_required": true, "void_return": true}'' --allow-risky=yes'
|
||||
run: 'vendor/bin/php-cs-fixer fix ./ --rules=''{"array_syntax": {"syntax": "short"}, "blank_line_after_namespace": true, "global_namespace_import": {"import_classes": false, "import_constants": false, "import_functions": false}, "binary_operator_spaces": {"operators": {"=": "align", ".=": "align", "+=": "align", "-=": "align", "*=": "align", "/=": "align", "|=": "align", "&=": "align", "=>": "align", "??=": "align", ">>=": "align", "<<=": "align"}}, "cast_spaces": {"space": "single"}, "class_attributes_separation": { "elements": {"const": "one", "method": "one", "property": "one"} }, "combine_consecutive_issets": true, "compact_nullable_typehint": true, "declare_strict_types": true, "declare_equal_normalize": {"space": "none"}, "elseif": true, "encoding": true, "explicit_indirect_variable": true, "explicit_string_variable": true, "function_to_constant": true, "implode_call": true, "increment_style": {"style": "pre"}, "is_null": true, "yoda_style": {"equal": false, "identical": false, "less_and_greater": false}, "line_ending": true, "logical_operators": true, "lowercase_cast": true, "constant_case": {"case": "lower"}, "lowercase_keywords": true, "modernize_types_casting": true, "native_constant_invocation": true, "native_function_casing": true, "native_function_invocation": {"include": ["@all"]}, "new_with_braces": true, "no_extra_blank_lines": {"tokens": ["break", "case", "continue", "curly_brace_block", "extra", "return", "switch", "throw", "use"]}, "no_spaces_after_function_name": true, "no_alias_functions": true, "no_closing_tag": true, "no_empty_comment": true, "no_empty_phpdoc": true, "no_empty_statement": true, "no_homoglyph_names": true, "no_mixed_echo_print": {"use": "echo"}, "no_php4_constructor": true, "no_singleline_whitespace_before_semicolons": true, "no_spaces_inside_parenthesis": true, "no_trailing_whitespace": true, "no_unneeded_final_method": true, "no_unused_imports": true, "no_useless_return": true, "no_whitespace_before_comma_in_array": true, "no_whitespace_in_blank_line": true, "non_printable_character": true, "normalize_index_brace": true, "ordered_imports": {"sort_algorithm": "alpha"}, "ordered_interfaces": {"order": "alpha"}, "php_unit_construct": true, "php_unit_internal_class": true, "php_unit_set_up_tear_down_visibility": true, "phpdoc_indent": true, "phpdoc_align": {"align": "vertical"}, "phpdoc_annotation_without_dot": true, "phpdoc_scalar": true, "phpdoc_return_self_reference": {"replacements": {"this": "self"}}, "phpdoc_trim": true, "phpdoc_trim_consecutive_blank_line_separation": true, "random_api_migration": true, "self_accessor": true, "return_type_declaration": {"space_before": "one"}, "semicolon_after_instruction": true, "set_type_to_cast": true, "short_scalar_cast": true, "single_blank_line_at_eof": true, "single_line_after_imports": true, "standardize_increment": true, "trailing_comma_in_multiline": true, "trim_array_spaces": true, "visibility_required": true, "void_return": true}'' --allow-risky=yes'
|
||||
- name: Check for modified files
|
||||
id: git-check
|
||||
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)
|
||||
|
|
|
|||
|
|
@ -400,7 +400,7 @@ final class ApiController extends Controller
|
|||
private function createClientL11nFromRequest(RequestAbstract $request) : BaseStringL11n
|
||||
{
|
||||
$clientL11n = new BaseStringL11n();
|
||||
$clientL11n->ref = $request->getDataInt('client') ?? 0;
|
||||
$clientL11n->ref = $request->getDataInt('client') ?? 0;
|
||||
$clientL11n->type = new NullBaseStringL11nType($request->getDataInt('type') ?? 0);
|
||||
$clientL11n->setLanguage(
|
||||
$request->getDataString('language') ?? $request->getLanguage()
|
||||
|
|
|
|||
|
|
@ -37,14 +37,14 @@ final class ClientAttributeValueMapper extends DataMapperFactory
|
|||
* @since 1.0.0
|
||||
*/
|
||||
public const COLUMNS = [
|
||||
'clientmgmt_attr_value_id' => ['name' => 'clientmgmt_attr_value_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'clientmgmt_attr_value_default' => ['name' => 'clientmgmt_attr_value_default', 'type' => 'bool', 'internal' => 'isDefault'],
|
||||
'clientmgmt_attr_value_valueStr' => ['name' => 'clientmgmt_attr_value_valueStr', 'type' => 'string', 'internal' => 'valueStr'],
|
||||
'clientmgmt_attr_value_valueInt' => ['name' => 'clientmgmt_attr_value_valueInt', 'type' => 'int', 'internal' => 'valueInt'],
|
||||
'clientmgmt_attr_value_valueDec' => ['name' => 'clientmgmt_attr_value_valueDec', 'type' => 'float', 'internal' => 'valueDec'],
|
||||
'clientmgmt_attr_value_valueDat' => ['name' => 'clientmgmt_attr_value_valueDat', 'type' => 'DateTime', 'internal' => 'valueDat'],
|
||||
'clientmgmt_attr_value_unit' => ['name' => 'clientmgmt_attr_value_unit', 'type' => 'string', 'internal' => 'unit'],
|
||||
'clientmgmt_attr_value_deptype' => ['name' => 'clientmgmt_attr_value_deptype', 'type' => 'int', 'internal' => 'dependingAttributeType'],
|
||||
'clientmgmt_attr_value_id' => ['name' => 'clientmgmt_attr_value_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'clientmgmt_attr_value_default' => ['name' => 'clientmgmt_attr_value_default', 'type' => 'bool', 'internal' => 'isDefault'],
|
||||
'clientmgmt_attr_value_valueStr' => ['name' => 'clientmgmt_attr_value_valueStr', 'type' => 'string', 'internal' => 'valueStr'],
|
||||
'clientmgmt_attr_value_valueInt' => ['name' => 'clientmgmt_attr_value_valueInt', 'type' => 'int', 'internal' => 'valueInt'],
|
||||
'clientmgmt_attr_value_valueDec' => ['name' => 'clientmgmt_attr_value_valueDec', 'type' => 'float', 'internal' => 'valueDec'],
|
||||
'clientmgmt_attr_value_valueDat' => ['name' => 'clientmgmt_attr_value_valueDat', 'type' => 'DateTime', 'internal' => 'valueDat'],
|
||||
'clientmgmt_attr_value_unit' => ['name' => 'clientmgmt_attr_value_unit', 'type' => 'string', 'internal' => 'unit'],
|
||||
'clientmgmt_attr_value_deptype' => ['name' => 'clientmgmt_attr_value_deptype', 'type' => 'int', 'internal' => 'dependingAttributeType'],
|
||||
'clientmgmt_attr_value_depvalue' => ['name' => 'clientmgmt_attr_value_depvalue', 'type' => 'int', 'internal' => 'dependingAttributeValue'],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -37,11 +37,11 @@ final class ClientL11nMapper extends DataMapperFactory
|
|||
* @since 1.0.0
|
||||
*/
|
||||
public const COLUMNS = [
|
||||
'clientmgmt_client_l11n_id' => ['name' => 'clientmgmt_client_l11n_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'clientmgmt_client_l11n_description' => ['name' => 'clientmgmt_client_l11n_description', 'type' => 'string', 'internal' => 'content', 'autocomplete' => true],
|
||||
'clientmgmt_client_l11n_id' => ['name' => 'clientmgmt_client_l11n_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'clientmgmt_client_l11n_description' => ['name' => 'clientmgmt_client_l11n_description', 'type' => 'string', 'internal' => 'content', 'autocomplete' => true],
|
||||
'clientmgmt_client_l11n_client' => ['name' => 'clientmgmt_client_l11n_client', 'type' => 'int', 'internal' => 'ref'],
|
||||
'clientmgmt_client_l11n_lang' => ['name' => 'clientmgmt_client_l11n_lang', 'type' => 'string', 'internal' => 'language'],
|
||||
'clientmgmt_client_l11n_typeref' => ['name' => 'clientmgmt_client_l11n_typeref', 'type' => 'int', 'internal' => 'type'],
|
||||
'clientmgmt_client_l11n_lang' => ['name' => 'clientmgmt_client_l11n_lang', 'type' => 'string', 'internal' => 'language'],
|
||||
'clientmgmt_client_l11n_typeref' => ['name' => 'clientmgmt_client_l11n_typeref', 'type' => 'int', 'internal' => 'type'],
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -14,116 +14,116 @@ declare(strict_types=1);
|
|||
|
||||
return ['ClientManagement' => [
|
||||
'AttributeTypes' => 'Attribute Types',
|
||||
'Accounting' => 'Accounting',
|
||||
'Map' => 'Map',
|
||||
'Addition' => 'Addition',
|
||||
'Address' => 'Address',
|
||||
'Addresses' => 'Addresses',
|
||||
'Africa' => 'Africa',
|
||||
'AllCustomers' => 'All Customers',
|
||||
'America' => 'America',
|
||||
'Analyse' => 'Analyse',
|
||||
'AreaManager' => 'Area Manager',
|
||||
'Articlegroup' => 'Articlegroup',
|
||||
'Articles' => 'Articles',
|
||||
'Asia' => 'Asia',
|
||||
'Attribute' => 'Attribute',
|
||||
'Attributes' => 'Attributes',
|
||||
'Balance' => 'Balance',
|
||||
'BaseTime' => 'Base time',
|
||||
'Bills' => 'Bills',
|
||||
'Bonus' => 'Bonus',
|
||||
'Business' => 'Business',
|
||||
'CIS' => 'CIS',
|
||||
'CLV' => 'CLV',
|
||||
'Calendar' => 'Calendar',
|
||||
'City' => 'City',
|
||||
'Client' => 'Client',
|
||||
'ClientID' => 'Client Id',
|
||||
'Clients' => 'Clients',
|
||||
'ComparisonTime' => 'Comparison time',
|
||||
'Contact' => 'Contact',
|
||||
'Country' => 'Country',
|
||||
'Created' => 'Created',
|
||||
'CreatedAt' => 'Created at',
|
||||
'CreditRating' => 'Credit Rating',
|
||||
'Creditcard' => 'Creditcard',
|
||||
'Customers' => 'Customers',
|
||||
'DSO' => 'DSO',
|
||||
'Date' => 'Date',
|
||||
'Default' => 'Default',
|
||||
'Delivery' => 'Delivery',
|
||||
'Discount' => 'Discount',
|
||||
'DiscountBonus' => 'Discount bonus',
|
||||
'DiscountP' => 'Discount %',
|
||||
'Documents' => 'Documents',
|
||||
'Due' => 'Due',
|
||||
'Email' => 'Email',
|
||||
'Europe' => 'Europe',
|
||||
'Fax' => 'Fax',
|
||||
'Files' => 'Files',
|
||||
'Filter' => 'Filter',
|
||||
'Freightage' => 'Freightage',
|
||||
'Group' => 'Group',
|
||||
'ID' => 'ID',
|
||||
'Info' => 'Info',
|
||||
'Invoice' => 'Invoice',
|
||||
'Invoices' => 'Invoices',
|
||||
'IsDefault' => 'Is default?',
|
||||
'Items' => 'Items',
|
||||
'LastContact' => 'Last Contact',
|
||||
'LastOrder' => 'Last Order',
|
||||
'Log' => 'Log',
|
||||
'Logs' => 'Logs',
|
||||
'LostCustomers' => 'Lost customers',
|
||||
'MRR' => 'MRR',
|
||||
'MTDSales' => 'MTD Sales',
|
||||
'Margin' => 'Margin',
|
||||
'Messages' => 'Messages',
|
||||
'Modified' => 'Modified',
|
||||
'Modules' => 'Modules',
|
||||
'Name' => 'Name',
|
||||
'Name1' => 'Name1',
|
||||
'Name2' => 'Name2',
|
||||
'Name3' => 'Name3',
|
||||
'Net' => 'Net',
|
||||
'NewCustomers' => 'New customers',
|
||||
'Notes' => 'Notes',
|
||||
'Number' => 'Number',
|
||||
'Office' => 'Office',
|
||||
'Other' => 'Other',
|
||||
'Payment' => 'Payment',
|
||||
'PaymentTerm' => 'Payment Term',
|
||||
'Permission' => 'Permission',
|
||||
'Phone' => 'Phone',
|
||||
'Postal' => 'Postal',
|
||||
'Price' => 'Price',
|
||||
'Prices' => 'Prices',
|
||||
'Private' => 'Private',
|
||||
'Productgroup' => 'Productgroup',
|
||||
'Profile' => 'Profile',
|
||||
'Profit' => 'Profit',
|
||||
'Purchase' => 'Purchase',
|
||||
'Quantity' => 'Quantity',
|
||||
'RecentInvoices' => 'Recent Invoices',
|
||||
'Region' => 'Region',
|
||||
'Rep' => 'Rep',
|
||||
'Retention' => 'Retention',
|
||||
'Sales' => 'Sales',
|
||||
'Segment' => 'Segment',
|
||||
'Segments' => 'Segments',
|
||||
'Subtype' => 'Subtype',
|
||||
'Support' => 'Support',
|
||||
'Tags' => 'Tags',
|
||||
'Title' => 'Title',
|
||||
'Total' => 'Total',
|
||||
'TotalPrice' => 'Total price',
|
||||
'Type' => 'Type',
|
||||
'UnitPrice' => 'Unit price',
|
||||
'Value' => 'Value',
|
||||
'Website' => 'Website',
|
||||
'Wire' => 'Wire',
|
||||
'YTDSales' => 'YTD Sales',
|
||||
'Zip' => 'Zip',
|
||||
'IMG_alt_map' => 'Map',
|
||||
'Accounting' => 'Accounting',
|
||||
'Map' => 'Map',
|
||||
'Addition' => 'Addition',
|
||||
'Address' => 'Address',
|
||||
'Addresses' => 'Addresses',
|
||||
'Africa' => 'Africa',
|
||||
'AllCustomers' => 'All Customers',
|
||||
'America' => 'America',
|
||||
'Analyse' => 'Analyse',
|
||||
'AreaManager' => 'Area Manager',
|
||||
'Articlegroup' => 'Articlegroup',
|
||||
'Articles' => 'Articles',
|
||||
'Asia' => 'Asia',
|
||||
'Attribute' => 'Attribute',
|
||||
'Attributes' => 'Attributes',
|
||||
'Balance' => 'Balance',
|
||||
'BaseTime' => 'Base time',
|
||||
'Bills' => 'Bills',
|
||||
'Bonus' => 'Bonus',
|
||||
'Business' => 'Business',
|
||||
'CIS' => 'CIS',
|
||||
'CLV' => 'CLV',
|
||||
'Calendar' => 'Calendar',
|
||||
'City' => 'City',
|
||||
'Client' => 'Client',
|
||||
'ClientID' => 'Client Id',
|
||||
'Clients' => 'Clients',
|
||||
'ComparisonTime' => 'Comparison time',
|
||||
'Contact' => 'Contact',
|
||||
'Country' => 'Country',
|
||||
'Created' => 'Created',
|
||||
'CreatedAt' => 'Created at',
|
||||
'CreditRating' => 'Credit Rating',
|
||||
'Creditcard' => 'Creditcard',
|
||||
'Customers' => 'Customers',
|
||||
'DSO' => 'DSO',
|
||||
'Date' => 'Date',
|
||||
'Default' => 'Default',
|
||||
'Delivery' => 'Delivery',
|
||||
'Discount' => 'Discount',
|
||||
'DiscountBonus' => 'Discount bonus',
|
||||
'DiscountP' => 'Discount %',
|
||||
'Documents' => 'Documents',
|
||||
'Due' => 'Due',
|
||||
'Email' => 'Email',
|
||||
'Europe' => 'Europe',
|
||||
'Fax' => 'Fax',
|
||||
'Files' => 'Files',
|
||||
'Filter' => 'Filter',
|
||||
'Freightage' => 'Freightage',
|
||||
'Group' => 'Group',
|
||||
'ID' => 'ID',
|
||||
'Info' => 'Info',
|
||||
'Invoice' => 'Invoice',
|
||||
'Invoices' => 'Invoices',
|
||||
'IsDefault' => 'Is default?',
|
||||
'Items' => 'Items',
|
||||
'LastContact' => 'Last Contact',
|
||||
'LastOrder' => 'Last Order',
|
||||
'Log' => 'Log',
|
||||
'Logs' => 'Logs',
|
||||
'LostCustomers' => 'Lost customers',
|
||||
'MRR' => 'MRR',
|
||||
'MTDSales' => 'MTD Sales',
|
||||
'Margin' => 'Margin',
|
||||
'Messages' => 'Messages',
|
||||
'Modified' => 'Modified',
|
||||
'Modules' => 'Modules',
|
||||
'Name' => 'Name',
|
||||
'Name1' => 'Name1',
|
||||
'Name2' => 'Name2',
|
||||
'Name3' => 'Name3',
|
||||
'Net' => 'Net',
|
||||
'NewCustomers' => 'New customers',
|
||||
'Notes' => 'Notes',
|
||||
'Number' => 'Number',
|
||||
'Office' => 'Office',
|
||||
'Other' => 'Other',
|
||||
'Payment' => 'Payment',
|
||||
'PaymentTerm' => 'Payment Term',
|
||||
'Permission' => 'Permission',
|
||||
'Phone' => 'Phone',
|
||||
'Postal' => 'Postal',
|
||||
'Price' => 'Price',
|
||||
'Prices' => 'Prices',
|
||||
'Private' => 'Private',
|
||||
'Productgroup' => 'Productgroup',
|
||||
'Profile' => 'Profile',
|
||||
'Profit' => 'Profit',
|
||||
'Purchase' => 'Purchase',
|
||||
'Quantity' => 'Quantity',
|
||||
'RecentInvoices' => 'Recent Invoices',
|
||||
'Region' => 'Region',
|
||||
'Rep' => 'Rep',
|
||||
'Retention' => 'Retention',
|
||||
'Sales' => 'Sales',
|
||||
'Segment' => 'Segment',
|
||||
'Segments' => 'Segments',
|
||||
'Subtype' => 'Subtype',
|
||||
'Support' => 'Support',
|
||||
'Tags' => 'Tags',
|
||||
'Title' => 'Title',
|
||||
'Total' => 'Total',
|
||||
'TotalPrice' => 'Total price',
|
||||
'Type' => 'Type',
|
||||
'UnitPrice' => 'Unit price',
|
||||
'Value' => 'Value',
|
||||
'Website' => 'Website',
|
||||
'Wire' => 'Wire',
|
||||
'YTDSales' => 'YTD Sales',
|
||||
'Zip' => 'Zip',
|
||||
'IMG_alt_map' => 'Map',
|
||||
]];
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ use phpOMS\Localization\ISO639Enum;
|
|||
$types = AttributeValueType::getConstants();
|
||||
|
||||
$attribute = $this->getData('attribute');
|
||||
$l11ns = $this->getData('l11ns');
|
||||
$l11ns = $this->getData('l11ns');
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
use Modules\Media\Models\NullMedia;
|
||||
use phpOMS\Uri\UriFactory;
|
||||
|
||||
/** @var \phpOMS\Views\View $this */
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\ClientManagement\tests\Controller\Api;
|
||||
|
||||
use Modules\Profile\Models\ContactType;
|
||||
use phpOMS\Localization\ISO3166TwoEnum;
|
||||
use phpOMS\Message\Http\HttpRequest;
|
||||
use phpOMS\Message\Http\HttpResponse;
|
||||
|
|
|
|||
|
|
@ -55,13 +55,13 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
protected string $appName = 'Api';
|
||||
};
|
||||
|
||||
$this->app->dbPool = $GLOBALS['dbpool'];
|
||||
$this->app->dbPool = $GLOBALS['dbpool'];
|
||||
$this->app->unitId = 1;
|
||||
$this->app->accountManager = new AccountManager($GLOBALS['session']);
|
||||
$this->app->appSettings = new CoreSettings();
|
||||
$this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules/');
|
||||
$this->app->dispatcher = new Dispatcher($this->app);
|
||||
$this->app->eventManager = new EventManager($this->app->dispatcher);
|
||||
$this->app->accountManager = new AccountManager($GLOBALS['session']);
|
||||
$this->app->appSettings = new CoreSettings();
|
||||
$this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules/');
|
||||
$this->app->dispatcher = new Dispatcher($this->app);
|
||||
$this->app->eventManager = new EventManager($this->app->dispatcher);
|
||||
$this->app->eventManager->importFromFile(__DIR__ . '/../../../../Web/Api/Hooks.php');
|
||||
$this->app->sessionManager = new HttpSession(36000);
|
||||
$this->app->l11nManager = new L11nManager();
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ namespace Modules\ClientManagement\tests\Models;
|
|||
use Modules\Admin\Models\NullAccount;
|
||||
use Modules\ClientManagement\Models\Client;
|
||||
use Modules\ClientManagement\Models\ClientMapper;
|
||||
use Modules\Profile\Models\NullProfile;
|
||||
use Modules\Profile\Models\Profile;
|
||||
use Modules\Profile\Models\ProfileMapper;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user