File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ class AlertsException extends FrameworkException implements ExceptionInterface
77{
88 public static function forInvalidTemplate (string $ template = null )
99 {
10- return new static (" ' { $ template } ' is not a valid Alerts template. " );
10+ return new static (lang ( ' Alerts.invalidTemplate ' , [ $ template]) );
1111 }
1212 public static function forMissingTemplateView (string $ template = null )
1313 {
14- return new static (" Could not find template view file: ' { $ template} '. " );
14+ return new static (lang ( ' Alerts.missingTemplateView ' , [ $ template]) );
1515 }
1616}
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ return [
4+ 'invalidTemplate ' => '"{0}" is not a valid Alerts template. ' ,
5+ 'missingTemplateView ' => 'Could not find template view file: "{0}". ' ,
6+ ];
You can’t perform that action at this time.
0 commit comments