From 86f46c2efd86f93aa9ff36e55e79f1e6a73dca3a Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Sat, 10 Aug 2024 13:56:40 +0100 Subject: [PATCH] Adds alias --- src/Configuration.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Configuration.php b/src/Configuration.php index 556e8432..fd12a92f 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -44,6 +44,14 @@ final class Configuration ); } + /** + * Depending on where is called, it will extend the given classes and traits globally or locally. + */ + public function extends(string ...$classAndTraits): UsesCall + { + return $this->extend(...$classAndTraits); + } + /** * Depending on where is called, it will add the given groups globally or locally. */ @@ -60,6 +68,14 @@ final class Configuration return $this->extend(...$classAndTraits); } + /** + * Depending on where is called, it will extend the given classes and traits globally or locally. + */ + public function uses(string ...$classAndTraits): UsesCall + { + return $this->extends(...$classAndTraits); + } + /** * Gets the theme configuration. */