Last active
August 29, 2015 14:04
-
-
Save immutef/d2001665e38ff408e255 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class AbstractService | |
{ | |
public function __construct($required1, $required2) | |
{ | |
// ... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ConcreteService extends AbstractService | |
{ | |
public function __construct($required1, $required2, $required3) | |
{ | |
parent::__construct($required1, $required2); | |
// ... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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