Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Thompson committed Nov 2, 2014
1 parent a3668ca commit bcd4063
Show file tree
Hide file tree
Showing 7 changed files with 130 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
files-module
============

Files module.
System file management.
17 changes: 17 additions & 0 deletions composer.json
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"
}
16 changes: 16 additions & 0 deletions src/FilesModule.php
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
{

}

25 changes: 25 additions & 0 deletions src/FilesModuleInstaller.php
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',
];
}

16 changes: 16 additions & 0 deletions src/FilesModuleServiceProvider.bak.php
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
{

}

28 changes: 28 additions & 0 deletions src/Installer/FilesFieldInstaller.php
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',
]
];
}

27 changes: 27 additions & 0 deletions src/Installer/FilesStreamInstaller.php
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,
],
];
}

0 comments on commit bcd4063

Please sign in to comment.