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 #1532 Add Phalcon\Assets\Collection::setTargetLocal #1593

Merged
merged 1 commit into from
Nov 25, 2013
Merged

Fix #1532 Add Phalcon\Assets\Collection::setTargetLocal #1593

merged 1 commit into from
Nov 25, 2013

Conversation

dreamsxin
Copy link
Contributor

See #1532

    public function testIssue1532()
    {
        @unlink(__DIR__ . '/assets/production/1532.js');
        $di = new \Phalcon\DI\FactoryDefault();
        $assets = new \Phalcon\Assets\Manager();
        $assets->useImplicitOutput(false);
        $assets->collection('js')
            ->addJs('unit-tests/assets/jquery.js')
            ->join(true)
            ->addFilter(new Phalcon\Assets\Filters\Jsmin())
            ->setTargetPath(__DIR__ .'/assets/production/1532.js')
            ->setTargetLocal(FALSE)
            ->setPrefix('//phalconphp.com/')
            ->setTargetUri('js/jquery.js');

        $this->assertEquals($assets->outputJs('js'), '<script type="text/javascript" src="//phalconphp.com/js/jquery.js"></script>' . PHP_EOL);
    }

phalcon pushed a commit that referenced this pull request Nov 25, 2013
Fix #1532 Add Phalcon\Assets\Collection::setTargetLocal
@phalcon phalcon merged commit cc0e879 into phalcon:1.3.0 Nov 25, 2013
@phalcon
Copy link
Collaborator

phalcon commented Nov 25, 2013

Thanks

@dreamsxin dreamsxin deleted the issue_1532 branch August 20, 2014 08:01
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