-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test commit * Updated config with prefix * Updated config with prefix * Updated config with new prefix * Updated config with new prefix * Added facrory to load varialbles model * Removed test badge and added compilation to test * Revemod the codeclimate test script * Added enable all, updated version * Added the memory limit for compilation
- Loading branch information
1 parent
649ecaf
commit d5e107b
Showing
7 changed files
with
54 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* Copyright © EAdesign by Eco Active S.R.L.,All rights reserved. | ||
* See LICENSE for license details. | ||
*/ | ||
|
||
namespace Eadesigndev\Pdfgenerator\Model\Email; | ||
|
||
use Eadesigndev\Pdfgenerator\Model\FactoryInterface; | ||
use Magento\Framework\ObjectManagerInterface; | ||
|
||
/** | ||
* Class VariablesFacrory | ||
* @package Eadesigndev\Pdfgenerator\Model\Email | ||
* @deprecated | ||
*/ | ||
class VariablesFacrory implements FactoryInterface | ||
{ | ||
private $objectManager = null; | ||
|
||
private $instanceName = null; | ||
|
||
public function __construct(ObjectManagerInterface $objectManager) | ||
{ | ||
$this->objectManager = $objectManager; | ||
if (class_exists(\Magento\Email\Model\Source\Variables::class)) { | ||
$this->instanceName = \Magento\Email\Model\Source\Variables::class; | ||
} | ||
|
||
if (class_exists(\Magento\Variable\Model\Source\Variables::class)) { | ||
$this->instanceName = \Magento\Variable\Model\Source\Variables::class; | ||
} | ||
} | ||
|
||
public function create(array $data = []) | ||
{ | ||
return $this->objectManager->create($this->instanceName, $data); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters