M
M
magary42016-02-22 15:05:00
symfony
magary4, 2016-02-22 15:05:00

How to use the ready interface?

i am working on this system
https://github.com/ezsystems/ezpublish-kernel/tree...
i need to make my installer how?
class CleanInstaller extends DbBasedInstaller implements Installer
here the developers defined the CleanInstaller class which implements the interface :
$this->runQueriesFromFile(
'vendor/ezsystems/ezpublish-kernel/data/mysql/schema.sql'
);
how do i make my implementation of this?
Do I need to create a class that inherits from DbBasedInstaller or do I need to somehow create an interface object?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
razer89, 2016-02-22
@razer89

Inherit your class from DbBasedInstaller, or from CleanInstaller (depending on what result you expect), and write your own implementation of the method (override)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question