Skip to content

Rewrite dummy to OOP #12

@shadowinek

Description

@shadowinek

Hello,

what do you think about rewrite functionality of this library to OOP and use DummyClass instead of direct function calls?

I'm trying to write Symfony 2 Bundle over this library and this should lead to better extensibility and better usage in the future.

To have backwards compatibility it is possible to modify curret functions:

For example:

// dummy.php
$dummy = new DummyClass();

function dummy($a, $internalcall = false) {
  global $dummy;
  return  $dummy->dummy($a, $internalcall)
}

I will try to do this in my fork, but I would like to have your opinion on this.

Regards,
Milan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions