Completed
Pull Request — master (#23)
by Bart
02:33
created

SchematicPlugin::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Craft;
4
5
/**
6
 * Schematic Plugin.
7
 *
8
 * Sync Craft Setups.
9
 *
10
 * @author    Nerds & Company
11
 * @copyright Copyright (c) 2015, Nerds & Company
12
 * @license   MIT
13
 *
14
 * @link      http://www.nerds.company
15
 */
16
class SchematicPlugin extends BasePlugin
17
{
18
    /**
19
     * Get plugin name.
20
     *
21
     * @return string
22
     */
23
    public function getName()
24
    {
25
        return Craft::t('Schematic');
26
    }
27
28
    /**
29
     * Get plugin version.
30
     *
31
     * @return string
32
     */
33
    public function getVersion()
34
    {
35
        return '1.4.1';
36
    }
37
38
    /**
39
     * Get plugin developer.
40
     *
41
     * @return string
42
     */
43
    public function getDeveloper()
44
    {
45
        return 'Nerds & Company';
46
    }
47
48
    /**
49
     * Get plugin developer url.
50
     *
51
     * @return string
52
     */
53
    public function getDeveloperUrl()
54
    {
55
        return 'http://www.nerds.company';
56
    }
57
58
    /**
59
     * Initialize the autoloader
60
     */
61
    public function init()
62
    {
63
        $autoloadPath = CRAFT_BASE_PATH.'../vendor/autoload.php';
64
        if(!class_exists('Symfony\Component\Yaml\Yaml') && file_exists($autoloadPath)){
65
            require_once $autoloadPath;
66
        }
67
68
    }
69
}
70