Skip to content

Conversation

@sergeysviridenko
Copy link
Contributor

Hello!

  • Type: new feature
  • Link to issue: -

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR

Small description of change:
Add new assets filter instead default. Because default js and css filters don't work in rpm package

Thanks

CHANGELOG.md Outdated
### Added
- Added `AWS SQS` instead `beanstalk`
- Added `queue service` and method that generate queue name
- Added `Phosphorum\Assets\Filters\CssJsFilter`. `Phalcon\Assets\Filters\Jsmin` and `Phalcon\Assets\Filters\Cssmin` don't work in `rpm` package
Copy link
Contributor

Choose a reason for hiding this comment

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

Added Phosphorum\Assets\Filters\NoneFilter to correct join unminified assets

* Phosphorum\Assets\Filters\CssJsFilter
* @package Phosphorum\Assets\Filters
*/
class CssJsFilter implements FilterInterface
Copy link
Contributor

Choose a reason for hiding this comment

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

NoneFilter

use Phalcon\Assets\FilterInterface;

/**
* Phosphorum\Assets\Filters\CssJsFilter
Copy link
Contributor

Choose a reason for hiding this comment

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

NoneFilter

*/
public function filter($contents)
{
return $contents;
Copy link
Contributor

Choose a reason for hiding this comment

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

return (string) $contents;

@sergeysviridenko sergeysviridenko force-pushed the 3.5.x_add_filter_collection branch from b36af7d to 88852e9 Compare May 18, 2018 15:04
@sergeyklay sergeyklay merged commit 218ca06 into phalcon:3.5.x May 21, 2018
@sergeysviridenko sergeysviridenko deleted the 3.5.x_add_filter_collection branch May 21, 2018 08:42
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