From bb1f5191654f0cd464579aa2f2351b9315a72d2b Mon Sep 17 00:00:00 2001 From: Ryan Thompson Date: Tue, 6 Jan 2015 23:21:45 -0600 Subject: [PATCH] Files --- LICENSE.md | 21 +++++++++++++++++++ README.md | 5 ++--- composer.json | 21 +++++++++++++++---- src/FilesModule.php | 14 +++++++++---- src/FilesModuleInstaller.php | 25 ----------------------- src/FilesModuleServiceProvider.bak.php | 16 --------------- src/Installer/FilesFieldInstaller.php | 28 -------------------------- src/Installer/FilesStreamInstaller.php | 27 ------------------------- 8 files changed, 50 insertions(+), 107 deletions(-) create mode 100644 LICENSE.md delete mode 100644 src/FilesModuleInstaller.php delete mode 100644 src/FilesModuleServiceProvider.bak.php delete mode 100644 src/Installer/FilesFieldInstaller.php delete mode 100644 src/Installer/FilesStreamInstaller.php diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..996c174 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +#The MIT License (MIT) + +###Copyright (c) 2014 AnomalyLabs, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md index 0ecb642..f280bb6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -files-module -============ +# Files Module -System file management. +Multi-provider files manager. diff --git a/composer.json b/composer.json index e90888c..a37c392 100644 --- a/composer.json +++ b/composer.json @@ -1,17 +1,30 @@ { "name": "anomaly/files-module", "type": "streams-addon", - "description": "Files module.", + "description": "Multi-provider files manager.", + "keywords": ["streams-addon", "files", "pyrocms", "laravel"], + "homepage": "http://anomaly.is/", + "license": "MIT", "authors": [ { - "name": "AnomalyLabs", - "email": "hello@anomaly.is" + "name": "AnomalyLabs, Inc.", + "email": "hello@anomaly.is", + "homepage": "http://anomaly.is/", + "role": "Owner" } ], + "support": { + "email": "support@anomaly.is" + }, + "autoload": { + "psr-4": { + "Anomaly\\FilesModule\\": "src/" + } + }, "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } }, "minimum-stability": "dev" -} \ No newline at end of file +} diff --git a/src/FilesModule.php b/src/FilesModule.php index 97bbc28..56e27f5 100644 --- a/src/FilesModule.php +++ b/src/FilesModule.php @@ -1,6 +1,6 @@ - * @author Ryan Thompson + * @package Anomaly\FilesModule */ -class FilesModule extends ModuleAddon +class FilesModule extends Module { + /** + * The module navigation role. + * + * @var string + */ + protected $navigation = 'streams::navigation.content'; } - \ No newline at end of file diff --git a/src/FilesModuleInstaller.php b/src/FilesModuleInstaller.php deleted file mode 100644 index 4d13dce..0000000 --- a/src/FilesModuleInstaller.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @author Ryan Thompson - */ -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', - ]; -} - \ No newline at end of file diff --git a/src/FilesModuleServiceProvider.bak.php b/src/FilesModuleServiceProvider.bak.php deleted file mode 100644 index b576a0a..0000000 --- a/src/FilesModuleServiceProvider.bak.php +++ /dev/null @@ -1,16 +0,0 @@ - - * @author Ryan Thompson - */ -class FilesModuleServiceProvider extends ServiceProvider -{ - -} - \ No newline at end of file diff --git a/src/Installer/FilesFieldInstaller.php b/src/Installer/FilesFieldInstaller.php deleted file mode 100644 index b382cad..0000000 --- a/src/Installer/FilesFieldInstaller.php +++ /dev/null @@ -1,28 +0,0 @@ - - * @author Ryan Thompson - * @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', - ] - ]; -} - \ No newline at end of file diff --git a/src/Installer/FilesStreamInstaller.php b/src/Installer/FilesStreamInstaller.php deleted file mode 100644 index 6c04d13..0000000 --- a/src/Installer/FilesStreamInstaller.php +++ /dev/null @@ -1,27 +0,0 @@ - - * @author Ryan Thompson - * @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, - ], - ]; -} - \ No newline at end of file