30 lines
645 B
PHP
30 lines
645 B
PHP
<?php namespace ZN;
|
|
/**
|
|
* ZN PHP Web Framework
|
|
*
|
|
* "Simplicity is the ultimate sophistication." ~ Da Vinci
|
|
*
|
|
* @package ZN
|
|
* @license MIT [http://opensource.org/licenses/MIT]
|
|
* @author Ozan UYKUN [ozan@znframework.com]
|
|
*/
|
|
|
|
class Command extends Base
|
|
{
|
|
/**
|
|
* Magic constructor
|
|
*
|
|
* @param void
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
# If the operation is executed via console, the code flow is not continue.
|
|
if( ! defined('CONSOLE_ENABLED') )
|
|
{
|
|
throw new Exception('Commands', 'canNotCommandClass'); // @codeCoverageIgnore
|
|
}
|
|
}
|
|
}
|