Support from Acquia helps fund testing for Drupal Acquia logo

Comments

heykarthikwithu created an issue. See original summary.

heykarthikwithu’s picture

Assigned: heykarthikwithu » Unassigned
Status: Active » Needs review
FileSize
1.17 KB
andypost’s picture

Status: Needs review » Needs work

Looks great, just needs a bit of work while you on that

+++ b/src/DefaultContentServiceProvider.php
@@ -7,9 +7,12 @@
+use Drupal\Core\DependencyInjection\ContainerBuilder;
 
-  public function alter(\Drupal\Core\DependencyInjection\ContainerBuilder $container) {
+class DefaultContentServiceProvider extends ServiceProviderBase {

Please add a docs block for the class, while you touch that

heykarthikwithu’s picture

Assigned: Unassigned » heykarthikwithu
heykarthikwithu’s picture

Assigned: heykarthikwithu » Unassigned
Status: Needs work » Needs review
FileSize
1.42 KB
760 bytes

Changes as per #3

andypost’s picture

+++ b/src/DefaultContentServiceProvider.php
@@ -10,8 +10,17 @@
+   * Modifies existing service definitions.
+   *
+   * @param \Drupal\Core\DependencyInjection\ContainerBuilder $container
+   *   The ContainerBuilder whose service definitions can be altered.

that should be just {@inheritdoc}
cos defined and documented in \Drupal\Core\DependencyInjection\ServiceModifierInterface::alter()

heykarthikwithu’s picture

Assigned: Unassigned » heykarthikwithu
Status: Needs review » Needs work
heykarthikwithu’s picture

Assigned: heykarthikwithu » Unassigned
Status: Needs work » Needs review
FileSize
1.25 KB
566 bytes
andypost’s picture

Status: Needs review » Reviewed & tested by the community

Thanx! great, to be commited soon

larowlan’s picture

+1

andypost’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.