class PackageCreator (View source)

Methods

void
__construct( Filesystem $files)

Create a new package creator instance.

string
create( Package $package, string $path, bool $plain = true)

Create a new package stub.

void
createWithResources( Package $package, string $path)

Create a package with all resource directories.

void
writeSupportFiles( Package $package, string $directory, bool $plain)

Write the support files to the package root.

void
writeIgnoreFile( Package $package, string $directory, bool $plain)

Write the stub .gitignore file for the package.

void
writeSupportDirectories( Package $package, string $directory)

Create the support directories for a package.

void
writePublicDirectory( Package $package, string $directory, bool $plain)

Create the public directory for the package.

void
writeTestDirectory( Package $package, string $directory)

Create the test directory for the package.

void
writeServiceProvider( Package $package, string $directory, bool $plain)

Write the stub ServiceProvider for the package.

Details

at line line 44
void __construct( Filesystem $files)

Create a new package creator instance.

Parameters

Filesystem $files

Return Value

void

at line line 57
string create( Package $package, string $path, bool $plain = true)

Create a new package stub.

Parameters

Package $package
string $path
bool $plain

Return Value

string

at line line 79
void createWithResources( Package $package, string $path)

Create a package with all resource directories.

Parameters

Package $package
string $path

Return Value

void

at line line 103
void writeSupportFiles( Package $package, string $directory, bool $plain)

Write the support files to the package root.

Parameters

Package $package
string $directory
bool $plain

Return Value

void

at line line 177
void writeIgnoreFile( Package $package, string $directory, bool $plain)

Write the stub .gitignore file for the package.

Parameters

Package $package
string $directory
bool $plain

Return Value

void

at line line 189
void writeSupportDirectories( Package $package, string $directory)

Create the support directories for a package.

Parameters

Package $package
string $directory

Return Value

void

at line line 225
void writePublicDirectory( Package $package, string $directory, bool $plain)

Create the public directory for the package.

Parameters

Package $package
string $directory
bool $plain

Return Value

void

at line line 241
void writeTestDirectory( Package $package, string $directory)

Create the test directory for the package.

Parameters

Package $package
string $directory

Return Value

void

at line line 256
void writeServiceProvider( Package $package, string $directory, bool $plain)

Write the stub ServiceProvider for the package.

Parameters

Package $package
string $directory
bool $plain

Return Value

void