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

Fix LessPHP as a dependency through Composer #239

Merged
merged 2 commits into from
Jun 12, 2012

Conversation

RobLoach
Copy link
Contributor

Now that LessPHP can be obtained via Composer, we can add it to composer.json and not use the hack we had in before. Checking $_SERVER is not fun.

It might be better to split the Assetic/LessPHP filter into a separate package/repository so that LessPHP is only a dependency when it's needed, but the general idea is provided here.

Thanks! Great work on Assetic.

@@ -14,7 +14,8 @@
],
"require": {
"php": ">=5.3.0",
"symfony/process": "2.1.*"
"symfony/process": "2.1.*",
"leafo/lessphp": "*"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LessPHP is not required. Maybe "suggest" is a better place for this?

@stof
Copy link
Collaborator

stof commented May 29, 2012

yeah, it should go in suggest and in require-dev (for the testsuite)

@@ -12,16 +12,13 @@
namespace Assetic\Filter;

use Assetic\Asset\AssetInterface;
use lessc;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the Sf2 coding standards (used by Assetic) don't add use statements for classes of the global namespace.

@RobLoach
Copy link
Contributor Author

Does it make sense to split the LessphpFilter off into a different repository/package so the lessphp dependency can be in "require"? Are there any plans for https://github.com/assetic ? Could have assetic/assetic, assetic/lessphpfilter, etc.

@stof
Copy link
Collaborator

stof commented May 29, 2012

@RobLoach you would have to require each filter then. I don't see how it would be more helpful.

@RobLoach
Copy link
Contributor Author

I mean just for the Filters that have third-party PHP dependencies...

  • CssMinFilter
  • LessphpFilter
  • JSMinFilter
  • JSMinPlusFilter
  • PackerFilter
  • etc

I understand if that would be too large an architectural change. I also understand it's rather out of scope for this PR.

@kriswallsmith
Copy link
Owner

@stof look ok to you?

stof added a commit that referenced this pull request Jun 12, 2012
Fix LessPHP as a dependency through Composer
@stof stof merged commit d6f89a3 into kriswallsmith:master Jun 12, 2012
@stof
Copy link
Collaborator

stof commented Jun 12, 2012

it is. I forgot about this PR but it is merged now

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.

3 participants