03.12.2015 Views

laravel4cookbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Packages 149<br />

.<br />

To recap; the commands we need to abstract are:<br />

• asset:combine<br />

• asset:minify<br />

• clean<br />

• copy<br />

• distribute<br />

• environment:get<br />

• environment:remove<br />

• environment:set<br />

• watch<br />

Many of these were cluttering up the list of commands which ship with Laravel. Our organisation<br />

should collect all of these in a common “namespace”.<br />

The first step is to create a few contracts (interfaces) for the API we want to expose through our<br />

package:<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!