Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-builder
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
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
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
Merged
Feature/storage test
feature/storage-test
into
master
Overview
0
Commits
2
Pipelines
2
Changes
4
Merged
Krzysztof Dyszczyk
requested to merge
feature/storage-test
into
master
5 years ago
Overview
0
Commits
2
Pipelines
2
Changes
4
Expand
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
c1caec75
2 commits,
5 years ago
4 files
+
26
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
src/Storage/WordpressFilterStorage.php
+
1
−
1
Options
@@ -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