-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from chrishalbert/fullMigrationHookSupport
Full migration hook support
- Loading branch information
Showing
10 changed files
with
439 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace ChrisHalbert\LaravelNomadic\Hooks; | ||
|
||
/** | ||
* Interface NomadicBaseHookInterface | ||
* @package ChrisHalbert\LaravelNomadic\Hooks | ||
*/ | ||
interface NomadicBaseHookInterface | ||
{ | ||
/** | ||
* Executes a function with parameters the create receives. | ||
* @return string | ||
*/ | ||
public function execute(); | ||
} |
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,12 @@ | ||
<?php | ||
|
||
namespace ChrisHalbert\LaravelNomadic\Hooks; | ||
|
||
/** | ||
* Interface NomadicCreateHookInterface | ||
* This is a placeholder until NomadicHookInterface is deprecated in favor of this more descriptive interface name. | ||
* @package ChrisHalbert\LaravelNomadic\Hooks | ||
*/ | ||
interface NomadicCreateHookInterface extends NomadicHookInterface, NomadicBaseHookInterface | ||
{ | ||
} |
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,22 @@ | ||
<?php | ||
|
||
namespace ChrisHalbert\LaravelNomadic\Hooks; | ||
|
||
/** | ||
* Interface NomadicBaseHookInterface | ||
* @package ChrisHalbert\LaravelNomadic\Hooks | ||
*/ | ||
interface NomadicMigrationHookInterface extends NomadicBaseHookInterface | ||
{ | ||
/** | ||
* Executes a function with parameters the create receives. | ||
* @param string $name The name of the migration. | ||
* @param string $path The path. | ||
* @param string $table The name of the table. | ||
* @param boolean $create Whether to use create stub. | ||
* @param string $className The generated name of hte class. | ||
* @param string $filePath The full path to the file. | ||
* @return string | ||
*/ | ||
public function execute($name = '', $path = '', $table = null, $create = false, $className = '', $filePath = ''); | ||
} |
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
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
Oops, something went wrong.