And Apple will happily repair it for you if its in the 1 year warranty and most likely in 2 years under EEC law (which someone here claims doesn't exist despite it being written in big writing under every check out on the Apple store).
I can point you in the direction of the EU directive if you like and let you look in vain for this mythical 2 year warranty. Apple grants you a one year manufacturer's warranty which is in addition and cannot override your statutory rights, which is a minimum 2 year guarantee as directed by the EU (6 years in England and Wales).
There is also no such thing as EU law. The EU parliament only has the power to issue directives, which each member state has to incorporate into its own legislation. Consumer law will thus vary from country to country.
It is Apple's passing of its limited manufacturer's warranty as the sum total of its obligations that has landed it in hot water.