Skip to content

Commit

Permalink
Merge pull request #256 from szepeviktor/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
philipobenito authored Mar 14, 2024
2 parents 13f41a3 + 05f307b commit 888b087
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ checks:
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
# Known typo
fix_identation_4spaces: true
fix_doc_comments: true
tools:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ All Notable changes to `League\Container` will be documented in this file

### Added
- Re-added the `share` proxy method that was mistakenly removed in previous major release.
- Added ability to set Conatiner to "share" by default using `defaultToShared` method.
- Added ability to set Container to "share" by default using `defaultToShared` method.
- Added ability for `ReflectionContainer` to cache resolutions and pull from cache for following calls.

## 3.0.1
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributions are **welcome** and will be fully **credited**.

We accept contributions via Pull Requests on [Github](https://github.com/thephpleague/container).
We accept contributions via Pull Requests on [GitHub](https://github.com/thephpleague/container).

## Pull Requests

Expand Down
2 changes: 1 addition & 1 deletion docs/3.x/dependency-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ var_dump($controller->model->pdo instanceof PDO); // true

## Factories

Container can accept any `callable` that will be used as a factory to resolve your classes. This is the most performant way to resolve your objects as no inspection is needed of the definition, however, this does reduce the amount of flexibilty you can take advantage of.
Container can accept any `callable` that will be used as a factory to resolve your classes. This is the most performant way to resolve your objects as no inspection is needed of the definition, however, this does reduce the amount of flexibility you can take advantage of.

Using the same example as above, we can define it in Container as follows.

Expand Down
4 changes: 2 additions & 2 deletions docs/3.x/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Dependency injection at it's core is as simple as that, and Container allows you

## Further Reading

I recommend reading the links below for further information about what problems dependncy injection solve.
I recommend reading the links below for further information about what problems dependency injection solve.

- [Dependency Injection Wikipedia Entry](https://en.wikipedia.org/wiki/Dependency_injection).
- [Inversion of Control Wikipedia Entry](https://en.wikipedia.org/wiki/Inversion_of_control).
Expand Down Expand Up @@ -147,7 +147,7 @@ Or, use any other [PSR-4](http://www.php-fig.org/psr/psr-4/) compatible autoload

Container allows you to register services, with or without their dependencies for later retrieval. It is a registry of sorts that when used correctly can allow you to implement the dependency injection design pattern.

Using the example in our [introduction](#introduction), we can start to take a look at how Container works. Now that `Acme\Foo` accepts `Acme\Bar` as a contructor argument, we can use Container to configure that.
Using the example in our [introduction](#introduction), we can start to take a look at how Container works. Now that `Acme\Foo` accepts `Acme\Bar` as a constructor argument, we can use Container to configure that.

~~~ php
<?php declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion docs/4.x/dependency-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ var_dump($controller->model->pdo instanceof PDO); // true

## Factories

Container can accept any `callable` that will be used as a factory to resolve your classes. This is the most performant way to resolve your objects as no inspection is needed of the definition, however, this does reduce the amount of flexibilty you can take advantage of.
Container can accept any `callable` that will be used as a factory to resolve your classes. This is the most performant way to resolve your objects as no inspection is needed of the definition, however, this does reduce the amount of flexibility you can take advantage of.

Using the same example as above, we can define it in Container as follows.

Expand Down
2 changes: 1 addition & 1 deletion docs/4.x/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Or, use any other [PSR-4](http://www.php-fig.org/psr/psr-4/) compatible autoload

Container allows you to register services, with or without their dependencies for later retrieval. It is a registry of sorts that when used correctly can allow you to implement the dependency injection design pattern.

Using the example in our [introduction](#introduction), we can start to take a look at how Container works. Now that `Acme\Foo` accepts `Acme\Bar` as a contructor argument, we can use Container to configure that.
Using the example in our [introduction](#introduction), we can start to take a look at how Container works. Now that `Acme\Foo` accepts `Acme\Bar` as a constructor argument, we can use Container to configure that.

~~~ php
<?php
Expand Down
2 changes: 1 addition & 1 deletion docs/4.x/upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ $container->delegate($delegateContainer);
// old
$container->hasInDelegate($id);
// new
$container->has($id); // checks main container and then all delagates
$container->has($id); // checks main container and then all delegates
$delegateContainer->has($id); // check specifically in the delegate
~~~

Expand Down
2 changes: 1 addition & 1 deletion docs/unstable/dependency-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ var_dump($controller->model->pdo instanceof PDO); // true

## Factories

Container can accept any `callable` that will be used as a factory to resolve your classes. This is the most performant way to resolve your objects as no inspection is needed of the definition, however, this does reduce the amount of flexibilty you can take advantage of.
Container can accept any `callable` that will be used as a factory to resolve your classes. This is the most performant way to resolve your objects as no inspection is needed of the definition, however, this does reduce the amount of flexibility you can take advantage of.

Using the same example as above, we can define it in Container as follows.

Expand Down
4 changes: 2 additions & 2 deletions docs/unstable/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Dependency injection at it's core is as simple as that, and Container allows you

## Further Reading

I recommend reading the links below for further information about what problems dependncy injection solve.
I recommend reading the links below for further information about what problems dependency injection solve.

- [Dependency Injection Wikipedia Entry](https://en.wikipedia.org/wiki/Dependency_injection).
- [Inversion of Control Wikipedia Entry](https://en.wikipedia.org/wiki/Inversion_of_control).
Expand Down Expand Up @@ -147,7 +147,7 @@ Or, use any other [PSR-4](http://www.php-fig.org/psr/psr-4/) compatible autoload

Container allows you to register services, with or without their dependencies for later retrieval. It is a registry of sorts that when used correctly can allow you to implement the dependency injection design pattern.

Using the example in our [introduction](#introduction), we can start to take a look at how Container works. Now that `Acme\Foo` accepts `Acme\Bar` as a contructor argument, we can use Container to configure that.
Using the example in our [introduction](#introduction), we can start to take a look at how Container works. Now that `Acme\Foo` accepts `Acme\Bar` as a constructor argument, we can use Container to configure that.

~~~ php
<?php
Expand Down
2 changes: 1 addition & 1 deletion docs/unstable/upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ $container->delegate($delegateContainer);
// old
$container->hasInDelegate($id);
// new
$container->has($id); // checks main container and then all delagates
$container->has($id); // checks main container and then all delegates
$delegateContainer->has($id); // check specifically in the delegate
~~~

Expand Down

0 comments on commit 888b087

Please sign in to comment.