Skip to content

Commit

Permalink
Moved the Features functionality from Foundation to Support
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Feb 19, 2024
1 parent 43da65f commit f16e6e7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
*/

namespace Vanilo\Foundation\Contracts;
namespace Vanilo\Contracts;

interface Feature
{
Expand Down
1 change: 1 addition & 0 deletions src/Support/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

- Dropped PHP 8.0 & PHP 8.1 Support
- Dropped Laravel 9 Support
- Added the `Features` accessor class, which is a syntactic sugar for areas of the configuration

## 3.x Series

Expand Down
6 changes: 3 additions & 3 deletions src/Foundation/Features.php → src/Support/Features.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
*
*/

namespace Vanilo\Foundation;
namespace Vanilo\Support;

use Vanilo\Foundation\Features\MultiChannel;
use Vanilo\Foundation\Features\Pricing;
use Vanilo\Support\Features\MultiChannel;
use Vanilo\Support\Features\Pricing;

class Features
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
*
*/

namespace Vanilo\Foundation\Features;
namespace Vanilo\Support\Features;

use Vanilo\Foundation\Contracts\Feature;
use Vanilo\Contracts\Feature;

class MultiChannel implements Feature
{
public function isEnabled(): bool
{
return (bool) config('vanilo.foundation.features.multi_channel.is_enabled', false);
return (bool) config('vanilo.features.multi_channel.is_enabled', false);
}

public function isDisabled(): bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
*
*/

namespace Vanilo\Foundation\Features;
namespace Vanilo\Support\Features;

use Vanilo\Foundation\Contracts\Feature;
use Vanilo\Contracts\Feature;

class Pricing implements Feature
{
Expand Down

0 comments on commit f16e6e7

Please sign in to comment.