-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
modules/system/classes/extensions/source/ComposerSource.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace System\Classes\Extensions\Source; | ||
|
||
use Winter\Storm\Exception\ApplicationException; | ||
|
||
class ComposerSource extends ExtensionSource | ||
{ | ||
/** | ||
* @throws ApplicationException | ||
*/ | ||
public function __construct( | ||
string $type, | ||
?string $code = null, | ||
?string $composerPackage = null, | ||
?string $path = null | ||
) { | ||
parent::__construct(static::SOURCE_COMPOSER, $type, $code, $composerPackage, $path); | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
...em/classes/extensions/ExtensionSource.php → ...ses/extensions/source/ExtensionSource.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace System\Classes\Extensions\Source; | ||
|
||
use Winter\Storm\Exception\ApplicationException; | ||
|
||
class LocalSource extends ExtensionSource | ||
{ | ||
/** | ||
* @throws ApplicationException | ||
*/ | ||
public function __construct( | ||
string $type, | ||
?string $code = null, | ||
?string $composerPackage = null, | ||
?string $path = null | ||
) { | ||
parent::__construct(static::SOURCE_LOCAL, $type, $code, $composerPackage, $path); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace System\Classes\Extensions\Source; | ||
|
||
use Winter\Storm\Exception\ApplicationException; | ||
|
||
class MarketSource extends ExtensionSource | ||
{ | ||
/** | ||
* @throws ApplicationException | ||
*/ | ||
public function __construct( | ||
string $type, | ||
?string $code = null, | ||
?string $composerPackage = null, | ||
?string $path = null | ||
) { | ||
parent::__construct(static::SOURCE_MARKET, $type, $code, $composerPackage, $path); | ||
} | ||
} |