Skip to content

Commit a97f922

Browse files
Corrected typos in slides.
1 parent f444028 commit a97f922

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/slides.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ This talk will assume you have some understanding of PHP and OOP, but if you get
9191

9292
* <strong>Dependency injection</strong> is used to inject services into other services.
9393

94-
* Sercices make unit testing much easier.
94+
* Services make unit testing much easier.
9595

9696
* Simple to use and powerful.
9797

@@ -161,7 +161,7 @@ drush eval "print_r(\Drupal::getContainer()->getServiceIds());"
161161

162162
---
163163

164-
# Dependecny Injection
164+
# Dependency Injection
165165

166166
A quick introduction.
167167

@@ -450,7 +450,7 @@ The static() here is a reference to the current class. This calls the constructo
450450
```
451451
\Drupal\Core\Plugin\ContainerFactoryPluginInterface
452452
```
453-
- This has the same `create()` method system, although you need to pass the plugin arguments to the parent controller.
453+
- This has the same `create()` method system, although you need to pass the plugin arguments to the parent constructor.
454454

455455
<!--
456456
Plugins work in the same way, but plugins will have additional arguments that need to be passed upstream.
@@ -459,7 +459,7 @@ Plugins work in the same way, but plugins will have additional arguments that ne
459459

460460
## Plugins
461461

462-
- The plugin controller does have a function in this instance.
462+
- The plugin constructor does need to receive arguments for plugins.
463463

464464
```php
465465
public static function create(ContainerInterface $container,
@@ -637,7 +637,7 @@ services:
637637
<!-- _footer: "" -->
638638
## Tips For Creating Services
639639

640-
- Don't use `\Drupal::service()` inside your service classes, use depedency injection instead.
640+
- Don't use `\Drupal::service()` inside your service classes, use dependency injection instead.
641641
* Use <strong>SOLID</strong> principles. Create small service classes that perform one task.
642642
* Don't have services with lots of arguments. This tends to show that the service is doing too much.
643643
* Keep constructors as simple as possible. Just assign your dependencies to properties.

0 commit comments

Comments
 (0)