Skip to content

Instantly share code, notes, and snippets.

@immutef
Last active August 29, 2015 14:04
Show Gist options
  • Save immutef/d2001665e38ff408e255 to your computer and use it in GitHub Desktop.
Save immutef/d2001665e38ff408e255 to your computer and use it in GitHub Desktop.
<?php
abstract class AbstractService
{
public function __construct($required1, $required2)
{
// ...
}
}
<?php
class ConcreteService extends AbstractService
{
public function __construct($required1, $required2, $required3)
{
parent::__construct($required1, $required2);
// ...
}
}
<service id="abstract.service" abstract="true" class="AbstractService">
<argument type="service" id="required1" />
<argument type="service" id="required2" />
</service>
<service id="concrete.service" parent="abstract.service" class="ConcreteService">
<argument type="service" id="required3" />
</service>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment