Git Product home page Git Product logo

Comments (6)

milesj avatar milesj commented on August 21, 2024

How is it difficult to add filters or hooks? It's pretty straight forward.

As for messages or config in general, just overwrite the files in the config folder.

from decoda.

piratadelfuturo avatar piratadelfuturo commented on August 21, 2024

What happens to me is that I am using composer, so if I add a file or modify something in your library composer.phar will not update it, it breaks the update process, I need to override it by inheritance somehow.

Here is the example:

alpha:symfony daniel$ php composer.phar update
Updating dependencies
  - Updating mjohnson/decoda (3.4)



  [RuntimeException]                                                                                         
  Source directory /Users/daniel/Sites/sevenboom/Src/symfony/vendor/mjohnson/decoda has uncommitted changes  



update [--prefer-source] [--dry-run] [--dev] [--no-scripts] [packages1] ... [packagesN]

So it wouldn't be a bad idea if you could add an addPath() method, so far I managed to add custom filters, hooks and messages from external folders by using this symfony2 bundle https://github.com/helios-ag/FMBbCodeBundle as wrapper, i modified it and added certain features so i can pass those external parameters, but the path for the templates is more complicated as it only has one possibility.

from decoda.

milesj avatar milesj commented on August 21, 2024

I see.

I'm actually working on v4 of this which ports it to PHP 5.3 and utilizes namespaces and allows for more customization. It should solve all these problems.

from decoda.

piratadelfuturo avatar piratadelfuturo commented on August 21, 2024

Did you published something laready, or do you know when might be available?

from decoda.

milesj avatar milesj commented on August 21, 2024

No I only started on it this weekend. I'm hoping to have it available within the next few weeks.

from decoda.

milesj avatar milesj commented on August 21, 2024

This has been fixed in v4. You can use addPath() to specify custom locations.

https://github.com/milesj/php-decoda/blob/master/Decoda.php#L228

from decoda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.