Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0b98fb

Browse files
committed
Replace the hardcoded /meta path with the manifest path from config.
1 parent 367b0ca commit e0b98fb

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Illuminate/Foundation/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ public function readyForResponses()
839839
*/
840840
public function isDownForMaintenance()
841841
{
842-
return file_exists($this['path.storage'].'/meta/down');
842+
return file_exists($this['config']['app.manifest'].'/down');
843843
}
844844

845845
/**

src/Illuminate/Foundation/Console/ClearCompiledCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function fire()
3030
@unlink($path);
3131
}
3232

33-
if (file_exists($path = $this->laravel['path.storage'].'/meta/services.json'))
33+
if (file_exists($path = $this->laravel['config']['app.manifest'].'/services.json'))
3434
{
3535
@unlink($path);
3636
}

src/Illuminate/Foundation/Console/DownCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class DownCommand extends Command {
2525
*/
2626
public function fire()
2727
{
28-
touch($this->laravel['path.storage'].'/meta/down');
28+
touch($this->laravel['config']['app.manifest'].'/down');
2929

3030
$this->comment('Application is now in maintenance mode.');
3131
}

src/Illuminate/Foundation/Console/UpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class UpCommand extends Command {
2525
*/
2626
public function fire()
2727
{
28-
@unlink($this->laravel['path.storage'].'/meta/down');
28+
@unlink($this->laravel['config']['app.manifest'].'/down');
2929

3030
$this->info('Application is now live.');
3131
}

0 commit comments

Comments
 (0)