Skip to content

Commit a0c1fb8

Browse files
committed
doc updates
1 parent 9f89dd2 commit a0c1fb8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Factory/AbstractAdapterFactory.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
use Symfony\Component\OptionsResolver\OptionsResolver;
1717

1818
/**
19+
* An abstract factory that makes it easier to implement new factories. A class that extend the AbstractAdapterFactory
20+
* should override AbstractAdapterFactory::$dependencies and AbstractAdapterFactory::configureOptionResolver().
21+
*
1922
* @author Tobias Nyholm <[email protected]>
2023
*/
2124
abstract class AbstractAdapterFactory implements AdapterFactoryInterface
@@ -57,7 +60,7 @@ public static function validate(array $options = [], $adapterName)
5760
$resolver->resolve($options);
5861
} catch (\Exception $e) {
5962
$message = sprintf(
60-
'Error while configure adapter %s. Verify your options under "cache_adapter.providers.%s.options". %s',
63+
'Error while configure adapter %s. Verify your configuration at "cache_adapter.providers.%s.options". %s',
6164
$adapterName,
6265
$adapterName,
6366
$e->getMessage()
@@ -68,7 +71,7 @@ public static function validate(array $options = [], $adapterName)
6871
}
6972

7073
/**
71-
* Make sure that we have the required class and throws and exception if we dont.
74+
* Make sure that we have the required class and throw and exception if we don't.
7275
*
7376
* @throws \LogicException
7477
*/
@@ -88,7 +91,7 @@ protected static function verifyDependencies()
8891
}
8992

9093
/**
91-
* By default we have not options ot configure. A factory should override this function and confgure
94+
* By default we do not have any options to configure. A factory should override this function and confgure
9295
* the options resolver.
9396
*
9497
* @param OptionsResolver $resolver

0 commit comments

Comments
 (0)