Skip to content

Commit

Permalink
Remove service provider support for removed config option
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 2, 2022
1 parent 7ecab17 commit d120027
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions packages/framework/src/HydeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,10 @@ function () {

$this->discoverBladeViewsIn('_pages');

/** @deprecated v0.43.0-beta and is used here as a fallback for compatibility */
if (config('hyde.output_directory') === null) {
$this->storeCompiledSiteIn(config(
'hyde.site_output_path',
Hyde::path('_site')
));
} else {
// Newer version which is safer.
$this->storeCompiledSiteIn(Hyde::path(config(
trim('hyde.output_directory', '_site'),
'/\\'
)));
}
$this->storeCompiledSiteIn(Hyde::path(config(
trim('hyde.output_directory', '_site'),
'/\\'
)));

$this->commands([
Commands\HydePublishHomepageCommand::class,
Expand Down

0 comments on commit d120027

Please sign in to comment.