Skip to content

Commit

Permalink
personalization of the official template
Browse files Browse the repository at this point in the history
  • Loading branch information
belisoful committed Nov 30, 2022
1 parent 0cc4f0e commit 7c5f119
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
18 changes: 9 additions & 9 deletions composer.json
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"
}
}
13 changes: 10 additions & 3 deletions src/MainModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -18,7 +18,6 @@
* main example bootstrap module class
*
* @author Brad Anderson <[email protected]>
* @package PradoComposerExtension
* @since 1.0.0
*/
class MainModule extends TPluginModule
Expand Down Expand Up @@ -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');
}
}

0 comments on commit 7c5f119

Please sign in to comment.