Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix case-sensitive driver key in docs #99

Merged
merged 1 commit into from Feb 28, 2017

Conversation

Projects
None yet
2 participants
@foaly-nr1
Copy link
Contributor

foaly-nr1 commented Nov 1, 2016

The following code

stash:
  drivers: [ Sqlite ]

will lead to error

A driver of name "Sqlite" is not registered.

as it's checked against the case-sensitive list from https://github.com/tedious/Stash/blob/11cc82d09412ee59dbb46262649d67d19eb06b4c/src/Stash/DriverList.php#L34:

protected static $drivers = array('Apc' => '\Stash\Driver\Apc',
                                  'BlackHole' => '\Stash\Driver\BlackHole',
                                  'Composite' => '\Stash\Driver\Composite',
                                  'Ephemeral' => '\Stash\Driver\Ephemeral',
                                  'FileSystem' => '\Stash\Driver\FileSystem',
                                  'Memcache' => '\Stash\Driver\Memcache',
                                  'Redis' => '\Stash\Driver\Redis',
                                  'SQLite' => '\Stash\Driver\Sqlite',
);

The documentation is therefore misleading.

foaly-nr1

@foaly-nr1 foaly-nr1 changed the title Fix case-sensitive driver key Fix case-sensitive driver key in docs Nov 1, 2016

@andrerom andrerom merged commit ec24fa1 into tedious:master Feb 28, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@foaly-nr1 foaly-nr1 deleted the foaly-nr1:patch-sqlite-docs branch Feb 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.