class ShortTagExpander implements FilterInterface (View source)

Expand the short PHP open tags (and optionally the short PHP echo tags).

Properties

protected bool $expandEcho

Should the short PHP echo tags be expanded too?

protected OutputInterface $output
protected VolatileDirectory $volatileDirectory
protected ShortTagExpander $expander
protected Filesystem $fs

Methods

__construct(bool $expandEcho, OutputInterface $output, VolatileDirectory $volatileDirectory, ShortTagExpander $expander, Filesystem $fs)

Initialize the instance.

apply(PackerFile $file)

Process a file/directory.

Details

__construct(bool $expandEcho, OutputInterface $output, VolatileDirectory $volatileDirectory, ShortTagExpander $expander, Filesystem $fs)

Initialize the instance.

Parameters

bool $expandEcho

set to tru to expand also short PHP echo tags

OutputInterface $output
VolatileDirectory $volatileDirectory
ShortTagExpander $expander
Filesystem $fs

PackerFile[] apply(PackerFile $file)

Process a file/directory.

Parameters

PackerFile $file

the file to be processed

Return Value

PackerFile[]

the resulting list of files after processing

See also

FilterInterface::apply