forked from pradosoft/prado-composer-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
personalization of the official template
- Loading branch information
Showing
2 changed files
with
19 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
{ | ||
"name": "pradosoft/prado-composer-extension", | ||
"version": "v1.0.0.1", | ||
"version_normalized": "1.0.0.1", | ||
"description": "The Base example PRADO Composer Extension", | ||
"name": "belisoful/prado-composer-extension", | ||
"version": "v1.0.0", | ||
"version_normalized": "1.0.0", | ||
"description": "The *First* Personalized Base example PRADO Composer Extension. Use this as a template.", | ||
"license": "BSD-3-Clause", | ||
"type": "prado4-extension", | ||
"keywords": [ "prado", "framework", "example", "extension"], | ||
"keywords": [ "prado", "framework", "example", "template", "extension"], | ||
"homepage": "https://github.com/pradosoft/prado-composer-extension", | ||
"authors": [ | ||
{ | ||
"name": "Brad Anderson", | ||
"email": "[email protected]", | ||
"role": "Developer", | ||
"role": "Software Architect", | ||
"homepage": "https://github.com/belisoful" | ||
} | ||
], | ||
"notification-url": "https://packagist.org/downloads/", | ||
"autoload": { | ||
"psr-4": { | ||
"PradoComposerExtension\\": "src" | ||
"belisoful\\PradoComposerExtension\\": "src" | ||
} | ||
}, | ||
"require": { | ||
"pradosoft/prado" : ">=4.2.0-alpha1" | ||
"pradosoft/prado" : ">=4.2.0" | ||
}, | ||
"extra": { | ||
"bootstrap": "PradoComposerExtension\\MainModule" | ||
"bootstrap": "belisoful\\PradoComposerExtension\\MainModule" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,10 +5,10 @@ | |
* @author Brad Anderson <[email protected]> | ||
* @link https://github.com/pradosoft/prado-composer-extension | ||
* @license https://github.com/pradosoft/prado-composer-extension/blob/master/LICENSE | ||
* @package PradoComposerExtension | ||
*/ | ||
namespace PradoComposerExtension; | ||
namespace belisoful\PradoComposerExtension; | ||
|
||
use Prado\Exceptions\TConfigurationException; | ||
use Prado\TPropertyValue; | ||
use Prado\Util\TPluginModule; | ||
|
||
|
@@ -18,7 +18,6 @@ | |
* main example bootstrap module class | ||
* | ||
* @author Brad Anderson <[email protected]> | ||
* @package PradoComposerExtension | ||
* @since 1.0.0 | ||
*/ | ||
class MainModule extends TPluginModule | ||
|
@@ -50,4 +49,12 @@ public function setPropertyA($v) | |
{ | ||
$this->_propertya = TPropertyValue::ensureString($v); | ||
} | ||
|
||
/** | ||
* an example that throws an error message defined in the extensions errorMessages.txt | ||
*/ | ||
public function throwCustomException() | ||
{ | ||
throw new TConfigurationException('my_error_condition'); | ||
} | ||
} |