Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/asset uploader #5

Merged
merged 45 commits into from
Sep 4, 2014
Merged

Feature/asset uploader #5

merged 45 commits into from
Sep 4, 2014

Conversation

Mahmoudz
Copy link
Contributor

@Mahmoudz Mahmoudz commented Sep 1, 2014

Files can be uploaded to the CDN. using the "php artisan cdn:push"
fill the config file and run the command.

mahmoud added 30 commits August 30, 2014 06:09
renaming the class makes more sense when making a ProviderHolder (to do similar job as the PathHolder but for providers and not for paths). So I can have a provider class to be extended by each service provider.
with interface and registered in the service provider also injected in the Cdn class
split the push function into small functions
and validate if the config file exist
for the last time I will change this file name, I think this is the best way to describe it
rename the get and set of AllowedPaths to Assets in the AssetsHolder class. rename getAssets to findAssets in the cdn class. reorder the 'use' in the finder class
fix the files reading test
and add exception to the cdn class
 and remove useless function from the cdn class
make some change to the config file
and remove ProviderHolder
and add ProviderFactory
and add more exceptions classes
modify the finder read function to return file objects instead of string of paths
and initialize an object (inside providerFactory) from it using the App make to resolve dependency
add threshold option, update the configuration to take ACL permission for amazon
and compoes the url in the provider factory
it will make it easy to to generate assets urls from the asset helper function
remove the reading of the configurations from the CdnFacade class to the Factory (to be only place responsible on reading the config file and checking nothing is missing) and calling the factory from the CdnFacade (same like in the cdn manager) to create and return the corresponding provider class
and add the url generator function to the interface
and updating some comments on the way
this class is to hold the shared function between the cdn class and the Cdnfacade class
(it never had a default if not exist)
Mulkave added a commit that referenced this pull request Sep 4, 2014
@Mulkave Mulkave merged commit 3caa0b0 into develop Sep 4, 2014
@Mulkave Mulkave deleted the feature/asset-uploader branch September 4, 2014 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants