Skip to content

Commit 4f4fc56

Browse files
author
jay
committed
设计
1 parent 3eb2023 commit 4f4fc56

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/DocumentBundle/Command/GenerateDocumentCommand.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,21 +89,19 @@ public function execute(InputInterface $input, OutputInterface $output)
8989

9090
private function globalConfig()
9191
{
92-
$global['title'] = Config::$title;
93-
$global['publishing'] = Config::$publishing;
94-
$global['domain'] = isset($_ENV['DOC_HOST']) ? $_ENV['DOC_HOST'] : '';
95-
$global['explain'] = Config::$explain;
96-
$global['note'] = Config::$note;
97-
$global['appendix'] = Config::$appendix;
92+
$global['title'] = Config::getTitle();
93+
$global['publishing'] = Config::getPublishing();
94+
$global['domain'] = Config::getHost();
95+
$global['explain'] = Config::getExplain();
96+
$global['note'] = Config::getNote();
97+
$global['appendix'] = Config::getAppendix();
9898

9999
foreach ($global as $key => $value){
100100
if(empty($value)){
101101
$global[$key] = '';
102102
}
103103
}
104104

105-
$database_url = isset($_ENV['DATABASE_URL']) ? $_ENV['DATABASE_URL'] : '';
106-
107105
$this->config['database_host'] = $this->connection->getHost();
108106
$this->config['database_name'] = $this->connection->getDatabase();
109107
$this->config['database_user_name'] = $this->connection->getUsername();

0 commit comments

Comments
 (0)