-
Notifications
You must be signed in to change notification settings - Fork 28
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
Ryan Thompson
committed
Nov 2, 2014
1 parent
a3668ca
commit bcd4063
Showing
7 changed files
with
130 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
files-module | ||
============ | ||
|
||
Files module. | ||
System file management. |
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,17 @@ | ||
{ | ||
"name": "anomaly/files-module", | ||
"type": "streams-addon", | ||
"description": "Files module.", | ||
"authors": [ | ||
{ | ||
"name": "AnomalyLabs", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0.x-dev" | ||
} | ||
}, | ||
"minimum-stability": "dev" | ||
} |
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 Anomaly\Streams\Addon\Module\Files; | ||
|
||
use Anomaly\Streams\Platform\Addon\Module\ModuleAddon; | ||
|
||
/** | ||
* Class FilesModule | ||
* | ||
* @link http://anomaly.is/streams-platform | ||
* @author AnomalyLabs, Inc. <[email protected]> | ||
* @author Ryan Thompson <[email protected]> | ||
*/ | ||
class FilesModule extends ModuleAddon | ||
{ | ||
|
||
} | ||
|
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,25 @@ | ||
<?php namespace Anomaly\Streams\Addon\Module\Files; | ||
|
||
use Anomaly\Streams\Platform\Addon\Module\ModuleInstaller; | ||
|
||
/** | ||
* Class FilesModuleInstaller | ||
* | ||
* @link http://anomaly.is/streams-platform | ||
* @author AnomalyLabs, Inc. <[email protected]> | ||
* @author Ryan Thompson <[email protected]> | ||
*/ | ||
class FilesModuleInstaller extends ModuleInstaller | ||
{ | ||
|
||
/** | ||
* Installers to run during installation. | ||
* | ||
* @var array | ||
*/ | ||
protected $installers = [ | ||
'Anomaly\Streams\Addon\Module\Files\Installer\FilesFieldInstaller', | ||
'Anomaly\Streams\Addon\Module\Files\Installer\FilesStreamInstaller', | ||
]; | ||
} | ||
|
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 Anomaly\Streams\Addon\Module\Files; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
/** | ||
* Class FilesModuleServiceProvider | ||
* | ||
* @link http://anomaly.is/streams-platform | ||
* @author AnomalyLabs, Inc. <[email protected]> | ||
* @author Ryan Thompson <[email protected]> | ||
*/ | ||
class FilesModuleServiceProvider extends ServiceProvider | ||
{ | ||
|
||
} | ||
|
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,28 @@ | ||
<?php namespace Anomaly\Streams\Addon\Module\Files\Installer; | ||
|
||
use Anomaly\Streams\Platform\Field\FieldInstaller; | ||
|
||
/** | ||
* Class FilesFieldInstaller | ||
* | ||
* @link http://anomaly.is/streams-platform | ||
* @author AnomalyLabs, Inc. <[email protected]> | ||
* @author Ryan Thompson <[email protected]> | ||
* @package Anomaly\Streams\Addon\Module\Files\Installer | ||
*/ | ||
class FilesFieldInstaller extends FieldInstaller | ||
{ | ||
|
||
/** | ||
* Fields to install for | ||
* the Files module. | ||
* | ||
* @var array | ||
*/ | ||
protected $fields = [ | ||
'string_id' => [ | ||
'type' => 'text', | ||
] | ||
]; | ||
} | ||
|
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,27 @@ | ||
<?php namespace Anomaly\Streams\Addon\Module\Files\Installer; | ||
|
||
use Anomaly\Streams\Platform\Stream\StreamInstaller; | ||
|
||
/** | ||
* Class FilesStreamInstaller | ||
* | ||
* @link http://anomaly.is/streams-platform | ||
* @author AnomalyLabs, Inc. <[email protected]> | ||
* @author Ryan Thompson <[email protected]> | ||
* @package Anomaly\Streams\Addon\Module\Files\Installer | ||
*/ | ||
class FilesStreamInstaller extends StreamInstaller | ||
{ | ||
|
||
/** | ||
* Assignments for the Files stream. | ||
* | ||
* @var array | ||
*/ | ||
protected $assignments = [ | ||
'string_id' => [ | ||
'is_required' => true, | ||
], | ||
]; | ||
} | ||
|