init
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace Ixrs\Catalog\App;
|
||||
|
||||
use Ixrs\Catalog\Facade\DefaultDefines;
|
||||
use Ixrs\Catalog\Facade\Defines;
|
||||
use Ixrs\Catalog\Facade\DefaultServiceFacade;
|
||||
use Ixrs\Catalog\Facade\ServiceFacade;
|
||||
use Ixrs\Catalog\Facade\DefaultFactoryFacade;
|
||||
use Ixrs\Catalog\Facade\FactoryFacade;
|
||||
|
||||
class App extends \Wt\Core\App\App
|
||||
{
|
||||
protected $includeFileToInitPhp;
|
||||
|
||||
/**
|
||||
* @param string $factoryName
|
||||
* @return FactoryFacade | DefaultFactoryFacade
|
||||
*/
|
||||
public function factory($factoryName = '')
|
||||
{
|
||||
return parent::factory($factoryName);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $serviceName
|
||||
* @param array $args
|
||||
* @return ServiceFacade | DefaultServiceFacade
|
||||
*/
|
||||
public function service($serviceName = '', $args = [])
|
||||
{
|
||||
return parent::service($serviceName, $args);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Defines|DefaultDefines
|
||||
*/
|
||||
public function defines()
|
||||
{
|
||||
return parent::defines();
|
||||
}
|
||||
|
||||
public function isIncludeFileToInitPhp($value = null)
|
||||
{
|
||||
if(is_null($value)){
|
||||
return $this->includeFileToInitPhp;
|
||||
}
|
||||
$this->includeFileToInitPhp = $value;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user