Skip to content

Question/request: Split cache library from CLI tool? #240

@mwernaert

Description

@mwernaert

Hi @gordalina

Are you open to the idea of splitting this package up in a tool package and a separate library package?

I currently use this package purely as a library and I reckon others do too. The main reason why I wish there was a separate library package is because some of the (bigger) dependencies are only required for the CLI tool.

If the library code was a separate package it would only require hollodotme/fast-cgi-client, psr/log, symfony/process, symfony/http-*.
And, although \CacheTool\CacheTool has a dependency on \Monolog\Logger, it is only used as a default logger. I think it would make more sense to use a \Psr\Log\NullLogger instance here.

Also, it would enable library consumers to upgrade to Symfony 7 (or future major versions) more easily, because consolidation/self-update is not blocking a major version upgrade in that case.

I'm happy to help with a PR. Let me know what you think!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions