Third Door Workhub & Nursery
(if you can't see this, view on ProsperTech Blog)
Made.com Showroom
(if you can't see this, view it on ProsperTech Blog)
Lots of fun connecting up the dots and ensuring the flow works well.
Third Door Workhub & Nursery
(if you can't see this, view on ProsperTech Blog)
Made.com Showroom
(if you can't see this, view it on ProsperTech Blog)
Lots of fun connecting up the dots and ensuring the flow works well.
apt-get remove openssl```
cd /tmp
sudo wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz
tar -zxvf openssl-1.0.1g.tar.gz
cd /tmp/openssl-1.0.1g
make install
sudo mandb
vi /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/local/ssl/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
logout
log back in again
So the latest news is that I have some availability again for contract work. View here if you're connected to me on Google+
I've created a calendar for my availability for "Symfony 2 PHP Development", best practice training, and web development support for 2013. If you know me, you already know that I've been doing web development for 16 years, so can take on all manner of projects, but I'd prefer them to be built with Symfony 2 and jQuery.
The calendar will be booked up on a first come, first accepted basis. Generally I'll require a £100 deposit, but this can be negotiated based on connections.
I'll be in contact about all bookings, so be sure to leave your contact details when you book in! I can be on-site in London for the full 8 hour day. Please contact me @nathanlon on all social platforms for further details.
The following code can work for XML default namespace.
<?php
$xml = <<<EOT
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:other="http://other.w3.org/other" >
<id>uYG7-sPwjFg</id>
<published>2009-05-17T18:29:31.000Z</published>
</entry>
EOT;
$doc = new DOMDocument;
$doc->loadXML($xml);
$xpath = DOMXPath($doc);
$xpath->registerNamespace('atom', "http://www.w3.org/2005/Atom");
$xpath_str = '//atom:entry/atom:published/text()';
$entries = $xpath->evaluate($xpath_str);
print $entries->item(0)->nodeValue ."n";
?>
A service has a class, arguments to pass in on instantiation (can be other services @mailer) (must be present in constructor)
arguments can be optional (@?my_mailer),
outside of the constructor, with the calls: yml line under class, e.g. - [ setMailer, [ @my_mailer ] ]
services are by default public.
If two services have common dependencies or calls requirements, extend each from an abstract, and use parent: abstract_class_name for each service,
with the abstract defined higher up - set with abstract: true, and the calls on these.
You can override the calls parameter on the service that extends a parent, by adding calls to this too, and using the same key. Note that it is then called twice, so if you want to add to an array you can (otherwise it gets replaced with the last call). You could remove parent param from extender to stop this.
Factories can be used to make a service (if more complex than just passing other services in as arguments), first define the factory,
then use factory_service: yml line referencing the factory key. For the method used within this factory, define it as factory_method: , e.g. get.
For arguments you wish to pass into the get method, use arguments: - an array - @templating for example.
Services can have tags, which implies that the service is to be used for a specific purpose.





