-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added include method and better error handling (#18)
* Added include method and better error handling * Cleanup * Update changelog * Add docs for using api in include method * Add mj-include support
- Loading branch information
Showing
8 changed files
with
178 additions
and
39 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
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,33 @@ | ||
<?php | ||
/** | ||
* MJML plugin for Craft CMS 3.x | ||
* | ||
* Render Twig emails with MJML, the only framework that makes responsive email easy. | ||
* | ||
* @link https://superbig.co | ||
* @copyright Copyright (c) 2018 Superbig | ||
*/ | ||
|
||
namespace superbig\mjml\exceptions; | ||
|
||
use yii\base\Exception; | ||
|
||
/** | ||
* @author Superbig | ||
* @package MJML | ||
* @since 1.0.0 | ||
*/ | ||
class MJMLException extends Exception | ||
{ | ||
public $cliCommand = ''; | ||
|
||
public function setCliCommand(string $cmd) | ||
{ | ||
$this->cliCommand = $cmd; | ||
} | ||
|
||
public function getCliCommand() | ||
{ | ||
return $this->cliCommand; | ||
} | ||
} |
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