Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshuaestes/sfamazons3plugin
Plugin for symfony 1.4 that allows users to work with Amazon s3 services, NOTE: this plugin will soon be merged into the sfAmazonPlugin
https://github.com/joshuaestes/sfamazons3plugin
Last synced: about 2 months ago
JSON representation
Plugin for symfony 1.4 that allows users to work with Amazon s3 services, NOTE: this plugin will soon be merged into the sfAmazonPlugin
- Host: GitHub
- URL: https://github.com/joshuaestes/sfamazons3plugin
- Owner: JoshuaEstes
- License: other
- Created: 2010-11-04T20:36:58.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2011-07-22T14:12:09.000Z (over 13 years ago)
- Last Synced: 2024-05-01T18:56:06.757Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 389 KB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
This plugin allows you to connect to Amazon s3 services. You should note that you
WILL NEED the Zend library for this. It needs to be installed in lib/vendor/ZendPlace this function in the ProjectConfiguration.class.php file:
static public function registerZend()
{
if (!self::$_ZendAutoloader)
{
set_include_path(implode(PATH_SEPARATOR, array(
sfConfig::get('sf_lib_dir').'/vendor',
get_include_path(),
)));require_once 'Zend/Loader/Autoloader.php';
self::$_ZendAutoloader = Zend_Loader_Autoloader::getInstance();
}
return self::$_ZendAutoloader;
}In the same file add this variable to the top of the class:
static protected $_ZendAutoloader = false;
If you have already added something similar in this file then you should be good
as long as the function 'registerZend()' is in there and it is static.app.yml
prod:
amazon_s3:
enabled: true
bucket: BUCKET NAMEdev:
amazon_s3:
enabled: true
bucket: BUCKET NAMEtest:
amazon_s3:
enabled: true
bucket: BUCKET NAMEall:
amazon_s3:
access_key: PLACE ACCESS KEY HERE
secret_key: PLACE SECRET KEY HEREby default, amazon s3 is configured to be off by default, if you wish to have it
turned on by default the set 'enabled: true' for allThings I need to do is have the ability to run tests on all the classes. Currently
I have no idea if this code works. I will be using it in the future for some projects
so I will maintain and update it as much as I can