Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-builder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-builder
Merge requests
!25
Feature/storage test
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Feature/storage test
feature/storage-test
into
master
Overview
0
Commits
2
Pipelines
2
Changes
3
Merged
Krzysztof Dyszczyk
requested to merge
feature/storage-test
into
master
5 years ago
Overview
0
Commits
2
Pipelines
2
Changes
3
0
0
Merge request reports
Viewing commit
dfa4e81e
Prev
Next
Show latest version
3 files
+
24
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
dfa4e81e
integration storage test
· dfa4e81e
dyszczo
authored
5 years ago
src/Storage/WordpressFilterStorage.php
+
1
−
1
View file @ dfa4e81e
Edit in single-file editor
Open in Web IDE
Show full file
@@ -17,7 +17,7 @@ class WordpressFilterStorage implements PluginStorage {
* @param AbstractPlugin $object
*/
public
function
add_to_storage
(
$class
,
$object
)
{
add_filter
(
self
::
STORAGE_FILTER_NAME
,
function
(
$plugins
)
use
(
$class
,
$object
)
{
add_filter
(
self
::
STORAGE_FILTER_NAME
,
static
function
(
$plugins
)
use
(
$class
,
$object
)
{
if
(
isset
(
$plugins
[
$class
]
)
)
{
throw
new
Exception\ClassAlreadyExists
(
"Class
{
$class
}
already exists"
);
}
Loading