Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

custom config file support (eg. for bower support) #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hranicka
Copy link

@hranicka hranicka commented Aug 1, 2014

I don't have included KCFinder in every GIT repository, I like add it like other dependencies (using Composer for PHP or Bower for JS/CSS).

Because KCFinder is combination of both and is used over HTTP, I've added it via Bower.
However I need custom PHP config and I have two ways:

  • fork a repository of KCFinder for each config
  • enable config PHP file outside the KCFinder repo

I like the second option, so I've made a conditional require inside conf/config.php.
Now when I install KCFinder via bower, I can create custom script kcfinder-config.php in the root of bower libraries and everything works fine, is customized and I don't need new repositories of KCFinder for each project where I use it :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant