mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-18 18:46:48 +03:00
fix(Doc Config update):
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Document;
|
||||
|
||||
class Config
|
||||
{
|
||||
/**
|
||||
* @var string 标题
|
||||
*/
|
||||
public static $title = '演示';
|
||||
|
||||
/**
|
||||
* @var string 出版商
|
||||
*/
|
||||
public static $publishing;
|
||||
|
||||
/**
|
||||
* @var string 说明
|
||||
*/
|
||||
public static $explain;
|
||||
|
||||
/**
|
||||
* @var string 注意
|
||||
*/
|
||||
public static $note;
|
||||
|
||||
/**
|
||||
* @var string 附录
|
||||
*/
|
||||
public static $appendix;
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Document;
|
||||
|
||||
class Config
|
||||
{
|
||||
/**
|
||||
* 标题
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function getTitle()
|
||||
{
|
||||
return '演示';
|
||||
}
|
||||
|
||||
/**
|
||||
* 出版商
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPublishing()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getExplain()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* 注意
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNote()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* 附录
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppendix()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* 主机
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getHost()
|
||||
{
|
||||
return $_ENV['DOC_HOST'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user