Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Mar 2012 at 07:01 UTC
Updated:
29 Jul 2014 at 20:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amateescu commentedI had a small problem with this patch, about not being able to define a
Defaultclass in Drupal\Core\Mail because of PHP restrictions, so in lack of any better name, I renamed the default class to.. *drumroll*.. Mail :) Basically, DefaultMailSystem is now Drupal\Core\Mail\Mail.I suppose we want to leave further clean-up of mail.inc to another issue? I'm thinking of a base class (abstract?) that will hold all the underscored functions that now reside in mail.inc.
Comment #3
amateescu commentedSigh..
Comment #4
Crell commentedYeah, I agree, silly name. :-) Could we perhaps call this something descriptive, like Sendmail, or PhpMail?
We don't have a Drupal\Core\Cache\Cache class for the default, we have a Drupal\Core\Cache\Database class for the default. That is more descriptive.
This may not be the place to make this change, but "Testing" is a bad name for this class. It documents what it is often used for, not what it does. It should rather be something like VariableLog.
This looks good otherwise on visual inspection. Is there another inc file we can kill in the process? :-)
20 days to next Drupal core point release.
Comment #5
amateescu commentedI like PhpMail and VariableLog, so went ahead with those names. Interdiff is against #3.
The only inc file left is mail.inc, which still contains some procedural stuff, but I think converting that to OO deserves a new issue.
Comment #6
Crell commentedI'm satisfied with #5, but it should probably get a second set of eyes on it before it goes RTBC.
Comment #7
catchBoth those class names look fine. mail.inc itself is definitely it's own issue.
I can't see anything to complain about here so I'm marking this RTBC, will leave it the usual 2-3 days before commit so people have a chance to object.
Comment #8
catch#5: mail-psr0-5.patch queued for re-testing.
Comment #10
amateescu commentedRerolled for the system.info fail.
Comment #11
catchCommitted/pushed to 8.x, thanks!