Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Merge requests
!33
Issue
#3231996
: Ensure file system is writeable
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3231996
: Ensure file system is writeable
issue/automatic_updates-3231996:3231996-ensure-file-system
into
8.x-2.x
Overview
4
Commits
12
Pipelines
0
Changes
2
1 unresolved thread
Hide all comments
Merged
Kunal Sachdev
requested to merge
issue/automatic_updates-3231996:3231996-ensure-file-system
into
8.x-2.x
3 years ago
Overview
4
Commits
12
Pipelines
0
Changes
2
1 unresolved thread
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
f439151d
Show latest version
2 files
+
30
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
f439151d
New Validator
· f439151d
Kunal Sachdev
authored
3 years ago
src/Validator/WritableFileSystemValidator.php
0 → 100644
+
26
−
0
Options
<?php
namespace
Drupal\automatic_updates\Validator
;
use
Drupal\automatic_updates
\AutomaticUpdatesEvents
;
use
Drupal\automatic_updates
\Event\UpdateEvent
;
use
Drupal\automatic_updates
\Validation\ValidationResult
;
use
Symfony\Component\EventDispatcher\EventSubscriberInterface
;
class
WritableFileSystemValidator
implements
EventSubscriberInterface
{
public
function
checkFileSystemWritable
(
UpdateEvent
$event
){
$result
=
ValidationResult
::
createError
([
t
(
'file system not writable'
)]);
$event
->
addValidationResult
(
$result
);
\Drupal
::
messenger
()
->
addMessage
(
"GOT HERE"
);
}
/**
* {@inheritdoc}
*/
public
static
function
getSubscribedEvents
()
{
return
[
AutomaticUpdatesEvents
::
READINESS_CHECK
=>
'checkFileSystemWritable'
,
];
}
}
Loading